texcount
all
Count words in TeX documents omitting macros. Note: If the TeX document uses `\include` or `\input` and you want to count the included files, `texcount` must be run in the directory of the root TeX file.
More info →Examples (5)
Count words in a TeX file
texcount path/to/file.texCount words in a document and subdocuments built with `\input` or `\include`
texcount -merge file.texCount words in a document and subdocuments, listing each file separately (and a total count)
texcount -inc file.texCount words in a document and subdocuments, producing subcounts by chapter (instead of subsection)
texcount -merge -sub=chapter file.texCount words with verbose output
texcount -v path/to/file.texmade by @shridhargupta | data from tldr-pages