Socket.io counting and broadcasting client numbers is buggy