add counters to 'show agents' CLI command (bug #4232)