{"action":"opened","issue":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/341","repository_url":"https://api.github.com/repos/mongodb/mongo-php-driver","labels_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/341/comments","events_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/341/events","html_url":"https://github.com/mongodb/mongo-php-driver/issues/341","id":162020664,"number":341,"title":"A method to count result items returned by Collection->find()","user":{"login":"raeesiqbal","id":10067728,"avatar_url":"https://avatars.githubusercontent.com/u/10067728?v=3","gravatar_id":"","url":"https://api.github.com/users/raeesiqbal","html_url":"https://github.com/raeesiqbal","followers_url":"https://api.github.com/users/raeesiqbal/followers","following_url":"https://api.github.com/users/raeesiqbal/following{/other_user}","gists_url":"https://api.github.com/users/raeesiqbal/gists{/gist_id}","starred_url":"https://api.github.com/users/raeesiqbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raeesiqbal/subscriptions","organizations_url":"https://api.github.com/users/raeesiqbal/orgs","repos_url":"https://api.github.com/users/raeesiqbal/repos","events_url":"https://api.github.com/users/raeesiqbal/events{/privacy}","received_events_url":"https://api.github.com/users/raeesiqbal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T20:53:31Z","updated_at":"2016-06-23T20:53:31Z","closed_at":null,"body":"```hack\r\n$Orders = $DB->selectCollection('orders')->find(['UserID' => $User['_id']]);\r\n```\r\n\r\n`find` returns `MongoDB\\Driver\\Cursor` which doesn't have a method to count the result items. But there should be."}}
{"actor":{"display_login":"raeesiqbal"}}