code: public long countOf(DomainObjectMatch<?> match) {
  		long ret;
  		Object so = InternalAccess.getQueryExecutor(this.domainQuery).getMappingInfo()
  				.getInternalDomainAccess().getSyncObject();
  		if (so != null) {
  			synchronized (so) {
  				ret = intCountOf(match);
  			}
  		} else
  			ret = intCountOf(match);
  		return ret;
  	}
docs: Answer the number of domain objects
  @param match
  @return the number of domain objects