Count and sort the frequency of words in a big text file