made freqcounter c file