[counters] First pass of fixes from Zoltan's code review.
[counters] Merge Ludovic code with new perf-agent commands.