Internal Server Error

Fatal error: Call to undefined method MongoDB\Driver\Cursor::count()