Made perf counter changes

Use the indexer syntax