adding code to calulate native hardware counters