/** * Executes the number of matching objects for the query * * @return integer The number of matching objects * @api */ public function count() { return $this->persistenceManager->getObjectCountByQuery($this); }