code: public org.grails.datastore.mapping.query.api.ProjectionList countDistinct(String propertyName) {
          return countDistinct(propertyName, null);
      }
docs: Adds a projection that allows the criteria to return the distinct property count
  
  @param propertyName The name of the property