Possible Duplicate:
Dynamically count and return number of words in a section
I'd like to include the word count of my LaTeX document in the document itself and not have to worry about updating it. All solutions I've found so far involve external scripts.
Yes, I could write a build file that counts the words, modifies the TeX file, and then builds the PDF. However, my IDE builds everythings itself so that I don't have access to the build process. Can't that be done in pure TeX / LaTeX?
-shell-escape
you could run something likelatexcount
during compilation.