Note that I recently learned of this.
Countable.js
A library that counts the number of characters and paragraphs.
The library is available at the following site. A demo is also available, so if you want to experience it right away, please try it once.
This is quite useful if you want to display "how many characters to go until 140 characters" in a form text box in real time.