{"action":"closed","issue":{"url":"https://api.github.com/repos/scottwrobinson/camo/issues/27","labels_url":"https://api.github.com/repos/scottwrobinson/camo/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/scottwrobinson/camo/issues/27/comments","events_url":"https://api.github.com/repos/scottwrobinson/camo/issues/27/events","html_url":"https://github.com/scottwrobinson/camo/issues/27","id":124642214,"number":27,"title":"Problems with \"count()\"","user":{"login":"kokujin","id":2885603,"avatar_url":"https://avatars.githubusercontent.com/u/2885603?v=3","gravatar_id":"","url":"https://api.github.com/users/kokujin","html_url":"https://github.com/kokujin","followers_url":"https://api.github.com/users/kokujin/followers","following_url":"https://api.github.com/users/kokujin/following{/other_user}","gists_url":"https://api.github.com/users/kokujin/gists{/gist_id}","starred_url":"https://api.github.com/users/kokujin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokujin/subscriptions","organizations_url":"https://api.github.com/users/kokujin/orgs","repos_url":"https://api.github.com/users/kokujin/repos","events_url":"https://api.github.com/users/kokujin/events{/privacy}","received_events_url":"https://api.github.com/users/kokujin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scottwrobinson/camo/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-03T10:40:20Z","updated_at":"2016-01-05T15:20:20Z","closed_at":"2016-01-05T15:20:20Z","body":"I tried to test the count() function, given this example:\r\n\r\n````\r\nconnect(uri).then(function(db) {\r\n    database = db;\r\n    console.log('db: ', db);\r\n    \r\n    var ibm = Company.create({\r\n        name: 'ibm',\r\n    });\r\n\r\n    // ibm.save().then(function(l) {\r\n    //     console.log('ibm: ', l.id);\r\n    // });\r\n\r\n    Company.loadMany({\r\n        name: 'ibm'\r\n    }).then(function(doc) {\r\n        //console.log('docs:', doc);\r\n    }).count(function(count) {\r\n        console.log('count----> ', count);\r\n    })\r\n\r\n    Company.count({\r\n        name: 'ibm'\r\n    }).then(function(count) {\r\n        console.log('count:', count);\r\n    })\r\n});\r\n\r\n````\r\nIn both log cases, nothing happens, no errors or output. Am i doing something wrong? Thanks"}}