adding hardware counters