I managed to make this little jquery function to count the number of words entered in textarea field.
here is the fiddle
and here is the code:
JQUERY
Adding a simple if condition will solve your problem.
if condition
$.each(wordCounts, function(k, v) { if(finalCount <= 200) { //Todos } else { return false; //prevent keyup event } });