I'm performing a simple request to my MongoDB in php. It looks like this:
$result = $this->myMongoClient->myCollection->find([
    'param_1' => $param_1,
    'param_2' => $param_2,
]);
This returns a MongoDB\Driver\Cursor object. I need the count of returned entrys from the database. 
I've googeld a while and found this. But with this function dose not exists on the object returend by MongoDB (Call to undefined method MongoDB\Driver\Cursor::count())
$result->count()
Which is the commun way to count the number of results?