Text box word count

Text box word count

Hi there,
 
Is there a way to count the number of words within a multi-line text box (for validation purposes)?
 
e.g.:
 
If user has entered more than 100 words, than do not submit the form and return the error message.  etc.
 
Thanks!
KP.