helpers for reading counters