count() публичный Метод

Returns the query result count
public count ( ) : integer
Результат integer The query result count
 /**
  * Returns the number of objects in the result
  *
  * @return integer The number of matching objects
  * @api
  */
 public function count()
 {
     if ($this->numberOfRows === null) {
         if (is_array($this->rows)) {
             $this->numberOfRows = count($this->rows);
         } else {
             $this->numberOfRows = $this->query->count();
         }
     }
     return $this->numberOfRows;
 }