docs: public Map<String, Integer> getComponentCounts() {
      Map<String, Integer> componentCounts = new HashMap<>();
      for (ContainerPlan containerPlan : getContainers()) {
        for (InstancePlan instancePlan : containerPlan.getInstances()) {
          Integer count = 0;
          if (componentCounts.containsKey(instancePlan.getComponentName())) {
            count = componentCounts.get(instancePlan.getComponentName());
          }
          componentCounts.put(instancePlan.getComponentName(), ++count);
        }
      }
      return componentCounts;
    }