title: MongoDB count() undefined
body: <p>I'm very newbie on Javascript-NodeJS-MongoDB, I try to know the number of documents found by a query.</p>
  
  <pre><code>...
  var page = req.params.page;  
  
  var db = require('mongojs').connect('localhost:27017/foo', ['bar']); 
  
  var docs = db.bar.find({x:'MME'}).sort({y:1}).skip(10*(page-1)).limit(10); 
  
  var nbDocs = db.bar.find({x:'MME'}).count(); /*docs.count();*/
  
  console.log(nbDocs);
  </code></pre>
  
  <p>But unfortunately the log gives me 'undefined', the same if I code  </p>
  
  <pre><code>var nbDocs = docs.count();
  </code></pre>
  
  <p>Thank's a lot for your precious help.</p>
  
  <p>Gilles.</p>