Made perf counter changes

Use query instead of QueryString