changing the derive types to counters