method EventEmitter.listenerCount
Usage
import { type EventEmitter } from "node:events";
Returns the number of listeners listening for the event named eventName.
If listener is provided, it will return how many times the listener is found
in the list of the listeners of the event.