public int getNumProtocols() {
        return protocols.size();
    }
Returns the number of protocols that are contained in this.

@return The number of protocols.
messagebus/src/main/java/com/yahoo/messagebus/MessageBusParams.java