code: public void incr(ResourceType resourceType) {
      Integer current = typeToCountMap.get(resourceType);
      if (current == null) {
        typeToCountMap.put(resourceType, new Integer(1));
      } else {
        typeToCountMap.put(resourceType, current + 1);
      }
    }
docs: Increment the count for a given resource type
  @param resourceType Resource type to increment the count of