I wrote a tiny LaTeX package that creates a wordcount environment. You can use it to auto-print word counts, when paring down text to meet limits. For example:
\begin{wordcount}{\abstractcount}
This is my abstract.
\end{wordcount}
\textbf{Word count:} \abstractcount % prints 4
Source code below…