Update freq_dict