code: public int countResourcesInGroup(I_CmsPublishResourceCheck check, List<CmsPublishResource> group) {
  
          int result = 0;
          for (CmsPublishResource res : group) {
              if (check.check(res)) {
                  result += 1;
              }
          }
          return result;
  
      }
docs: Counts the resources of a group which pass a given check.<p>
  
  @param check the check to apply
  @param group the group of publish resources
  
  @return the number of resources in that group which passed the check