public int getNumRoutes() {
        return routes.size();
    }
Returns the number of route specs contained in this.

@return The number of routes.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTableSpec.java