frequency_counter example requires memset