code: public int getCurrentMethodOrdinal(int overrideId, int pathId, String clientUUID, String[] filters) throws Exception {
          int currentOrdinal = 0;
          List<EnabledEndpoint> enabledEndpoints = getEnabledEndpoints(pathId, clientUUID, filters);
          for (EnabledEndpoint enabledEndpoint : enabledEndpoints) {
              if (enabledEndpoint.getOverrideId() == overrideId) {
                  currentOrdinal++;
              }
          }
          return currentOrdinal;
      }
docs: Get the ordinal value for the last of a particular override on a path
  
  @param overrideId Id of the override to check
  @param pathId Path the override is on
  @param clientUUID UUID of the client
  @param filters If supplied, only endpoints ending with values in filters are returned
  @return The integer ordinal
  @throws Exception