counters: remove need for counter id by generating an enum.