count() public méthode

Count documents in result without applying limit and offset
public count ( ) : integer
Résultat integer count
Exemple #1
0
 public function getTotalRowsCount()
 {
     if ($this->totalRowsCount) {
         return $this->totalRowsCount;
     }
     $this->totalRowsCount = $this->cursor->count();
     return $this->totalRowsCount;
 }