if(exists($count{$word})){ $occurence = $count{$word}; freq_count++; }