Added FrequencyCounter, tested
Merge branch 'frequency_counter'