public function grabCollectionCount($collection, $criteria = [])
    {
        $collection = $this->driver->getDbh()->selectCollection($collection);
        return $collection->count($criteria);
    }
public function grabCollectionCount($collection, $criteria = [])
    {
        $collection = $this->driver->getDbh()->selectCollection($collection);
        return $collection->count($criteria);
    }
public function grabCollectionCount ( $ collection , $ criteria = [ ] ) { $ collection = $ this -> driver -> getDbh ( ) -> selectCollection ( $ collection ) ; return $ collection -> count ( $ criteria ) ; }
Grabs the documents count from a collection

``` php
<?php
$count = $I->grabCollectionCount('users');
// or
$count = $I->grabCollectionCount('users', array('isAdmin' => true));
```

@param $collection
@param array $criteria
@return integer
Grabs the documents count from a collection