public int getCount(RequestOrResponseType type) {
    return requestCounts.getOrDefault(type, new LongAdder()).intValue();
  }
Get the count of requests of the given type.
@param type the type of request
@return the count of requests this server has received of the given type.
ambry-router/src/test/java/com/github/ambry/router/MockServer.java