fixed addCounter interface in PerfCounter
fix bugs in performance counter.