code: public org.grails.datastore.mapping.query.api.ProjectionList rowCount(String alias) {
          final Projection proj = Projections.rowCount();
          addProjectionToList(proj, alias);
          return this;
      }
docs: Adds a projection that allows the criteria to return the row count
  
  @param alias The alias to use