detex <filename> | wc -wThe latexcount script does the same sort of job, in one “step”; being a perl script, it is in principle rather easily configured (see documentation inside the script). Winedt (see editors and shells) provides this functionality direct in the Windows environment. TeXcount also goes a long way with heuristics for counting, starting from a LaTeX file; the documentation is comprehensive, and you may try the script on-line via the package home page. Even quite sophisticated stripping of (La)TeX markup can never be entirely reliable, however: that markup itself may contribute typeset words, and this could be a problem. The wordcount package contains a Bourne shell (i.e., typically Unix) script for running a LaTeX file with a special piece of supporting TeX code, and then counting word indications in the log file. This is probably as accurate automatic counting as you can get, if it works for you.
Comments, suggestions, or error reports? - see “how to improve the FAQ”.
This is FAQ version 3.19c, last modified on 2010-01-08.