public int getNumHops() {
        return hops.size();
    }
Returns the number of hops that are contained in this table.

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