title: Adobe Script to show active Word Count
body: <p>I have a script that allows me to view the <strong><em>Character Count</em></strong> limit, and then it counts down. I would prefer to display a <strong><em>Word Count</em></strong> instead because the majority of people don't count characters. I've attached a link to the pdf I've created for that.</p>
  
  <p><strong><a href="http://webfro.gs/south/Adobe/Character%20Countdown.pdf" rel="nofollow">http://webfro.gs/south/Adobe/Character%20Countdown.pdf</a></strong></p>
  
  <p>In <strong><em>Properties</em></strong> > <strong><em>Actions</em></strong> > <strong><em>On Focus</em></strong> > <strong><em>Run a Javascript</em></strong> - I have the following script running... </p>
  
  <p><code>var maxlim=event.target.charLimit;
  if (event.target.value.length==0)
  this.getField("cntdwn").value=maxlim;</code></p>
  
  <p>Then, in <strong><em>Properties</em></strong> > <strong><em>Format</em></strong> > <strong><em>Custom Keystroke Script</em></strong> - I am running this Countdown script</p>
  
  <p><code>var value = custmMergeChange(event);
  var L = value.length;
  this.getField("cntdwn").value=(maxlim-L);</code></p>
  
  <p>Is there something out there that can display a <strong><em>Word Count</em></strong> and when the word count is reached (counting up) or it reaches zero (counting down), can the ability to type any further be stopped? </p>
  
  <p>How's this possible?</p>