jQuery Wordcount is a drop-dead-simple word count plugin for jQuery.
Simple:
$('any-textarea-selector').wordcount();
Options:
- limit: Limit the number of words in the textarea (default: 0 = no limit)
- showLimit: Display the limit in the display, if enabled (default: false)
- displayClass: CSS class for the display holder (default: jq-wordcount-display)
- class: CSS class to give the textarea (default: jq-wordcount)
Enjoy. Feel free to use or modify this in any way, but please retain any credits.