Short program to measure word frequencies in a text file