public int getNumHops() {
        return hops.size();
    }
<p>Returns the number of hops that make up this route.</p>

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