code: public Integer getCount(ResourceType resourceType) {
      Integer count = typeToCountMap.get(resourceType);
      if (count == null) {
        return 0;
      } else {
        return count;
      }
    }
docs: Return the count of the ResourceType
  @param resourceType
  @return Count of the resource type