count() public method

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