Removes a manually added counter from the set currently being monitored automatically by the Listener. Counters may be added using the addCounter method.
For more information about working with counters, see Supporting Windows Performance Counters.
void removeCounter(String counterPath);
Listener listener = new Listener("sampleApp", "4.0");
listener.addCounter("\\TCP\\Segments Sent/sec");
...
listener.removeCounter("\\TCP\\Segments Sent/sec");