replace frequencies with count_values