[counters] Add support for starting the perf agent with attach
Integrate the counters agent from Ludo.