Count the words in a .tex file