# [texhax] word count

Sun Dec 31 01:13:42 CET 2006

```On Sat, 30 Dec 2006, Karl Berry wrote:

>     Do you know how to count the words in a TeX document or a DVI file.
>
> Here's the FAQ entry on the topic:
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wordcount

Here is a solution by Hans Hagen, posted on the ConTeXt mailing list.
The question was how to count words inside an environment (e.g.
abstract). Like any other word counting solution, it will not give the
"correct" answer if you have math inside the environment.

http://archive.contextgarden.net/message/20060807.092238.85758dda.en.html