docs: public long count(Class<? extends Execution> cls, Map<String,Object> criteria) throws PersistenceException {
          logger.debug("enter - count(Class,Map)");
          if( logger.isDebugEnabled() ) {
              logger.debug("For: " + cache.getTarget().getName() + "/" + cls + "/" + criteria);
          }
          try {
              Transaction xaction = Transaction.getInstance(true);
              
              try {
                  long count = 0L;
      
                  criteria = xaction.execute(cls, criteria);
                  count = ((Number)criteria.get("count")).longValue();
                  xaction.commit();
                  return count;
              }
              finally {
                  xaction.rollback();
              }
          }
          finally {
              logger.debug("exit - count(Class,Map)");
          }
      }