[counters] Edit dump_counter to use mono_counters_sample and accessors