Fix word counts for text files.