Count words in PDF files