public int getServicesCount(final boolean includePrivate) {
        int servicesCnt = mucServices.size();
        if (!includePrivate) {
            for (MultiUserChatService service : mucServices.values()) {
                if (service.isHidden()) {
                    servicesCnt--;
                }
            }
        }
        return servicesCnt;
    }
Returns the number of registered MultiUserChatServices.

@param includePrivate True if you want to include private/hidden services in the count.
@return Number of registered services.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MultiUserChatManager.java