Bug 904720: Count event listeners. r=njn,smaug