detect num of listeners