Twitter only allows maximum 140 characters of a tweet. At the time of entering input, it shows how many characters are remaining.
Remaining character value changes on every character input.
Similar to Twitter other websites also uses the same functionality.
For example – In the medium, you could see this in Bio section there it allows 160 character input after that it didn’t take any inputs.
In this tutorial, I am creating the similar type of functionality with jQuery.