add counter_get method