allow specifying key for counter_reset()