add  how to get listeners length to pub-sub.js