Added JS function for obtaining the number of listeners