performance counter class & method added.