Count occurrences of words in articles

Remove CountWords class
Fix checking for end of file before reading