@Override
    public int getNumberConnectedUsers() {
        return occupantManager.numberOfUniqueUsers();
    }
Returns the total number of occupants in all rooms.

@return the total number of occupants.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java