src/Repository.php
public function count($filters = [], $options = [])
    {
        return $this->collection->count($this->castQuery($filters), $options);
    }
public function count($filters = [], $options = [])
    {
        return $this->collection->count($this->castQuery($filters), $options);
    }
public function count ( $ filters = [ ] , $ options = [ ] ) { return $ this -> collection -> count ( $ this -> castQuery ( $ filters ) , $ options ) ; }
Count corresponding documents for filters

@param   array                   $filters            Object
@param   array                   $options            Options for the query
@return  int                                         Number of corresponding documents
Count corresponding documents for filters