# Word Count (or Character count) for an input field

**URL:** <https://forum.kirupa.com/t/word-count-or-character-count-for-an-input-field/128982>\
**Category:** Uncategorized\
**Created:** [November 18, 2004, 3:20pm UTC](https://forum.kirupa.com/t/word-count-or-character-count-for-an-input-field/128982 "2004-11-18T15:20:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchalker](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bchalker/32/441_2.png) [@bchalker](https://forum.kirupa.com/u/bchalker)\
**Post date:** [November 18, 2004, 3:20pm UTC](https://forum.kirupa.com/t/word-count-or-character-count-for-an-input-field/128982/1 "2004-11-18T15:20:34Z")

</div>

How would I create a word/character count field to count down characters used when typed into an input filed.

i.e. input field has a maxChar=255. I want the user to see the chars count down from 255, so they’ll know how many they have left.

I figure it would be along the lines of wordCountField=maxChar-currentNumOfChars…would that be right?

Thanks.
