Update frequency_counter.py