Implements add/delete methods for counters.