Update perf_counter.c

Fixing Jonathan's Mistakes.