nice wordFrequency function