added fn dump_counters