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

Count documents in result without applying limit and offset
public count ( ) : integer
Результат integer count
Пример #1
0
 public function getTotalRowsCount()
 {
     if ($this->totalRowsCount) {
         return $this->totalRowsCount;
     }
     $this->totalRowsCount = $this->cursor->count();
     return $this->totalRowsCount;
 }