docs: public int getCount(Class target)
      {
          PersistenceBroker broker = ((HasBroker) odmg.currentTransaction()).getBroker();
          int result = broker.getCount(new QueryByCriteria(target));
          return result;
      }