public function getTotal()
    {
        $query = clone $this->getQuery();
        $query->order = null;
        $query->limit = null;

        return $query->fetchValue('COUNT(*)');
    }
public function getTotal()
    {
        $query = clone $this->getQuery();
        $query->order = null;
        $query->limit = null;

        return $query->fetchValue('COUNT(*)');
    }
public function getTotal ( ) { $ query = clone $ this -> getQuery ( ) ; $ query -> order = null ; $ query -> limit = null ; return $ query -> fetchValue ( 'COUNT(*)' ) ; }
Return the total number of entities that match the entityset query.

@return int
Return the total number of entities that match the entityset query .