Karakter Sayacı
Sample code
Ref:
JS Tutorial