debug_listener: simplifying implementation
debug_listener: counts repetitions now