title: Get Collections stats in MongoDB 3.2
body: <p>In earlier versions say MongoDB 2.6, the DBCollection class has this method getStats(). </p>
  
  <pre><code>DBCollection.getStats()
  </code></pre>
  
  <p>In the new 3.x versions , we have a new class</p>
  
  <blockquote>
    <p>MongoCollection</p>
  </blockquote>
  
  <p>and it has no method to get the statistics.</p>
  
  <p>My question is how to get the statistics from the MongoCollection class </p>