code: public int countActiveInstances(ServiceManagerResourceRestService service, String templateName)
  	{
  		List<ResourceInstanceDTO> instances = activeInstances(service, templateName);
  
  		return instances.size();
  	}
docs: Returns the number of active instances of the given template name
  
  @param service
  @param templateName
  
  @return