WordStat works for count, rank, most common, and least common, untested
pair hashtable and ranked array