added getWord to freqCount