correctly handles the number of users in a chat room