add a generator for counters