title: How to know MongoDB collection size?
body: <blockquote>
    <p>db.collection.stats()</p>
  </blockquote>
  
  <p>Response : </p>
  
  <pre><code>    "count" : 20696445,
      "size" : NumberLong("1478263842661"),
      "storageSize" : 334732324864,
      "totalIndexSize" : 676327424,
      "indexSizes" : {
              "_id_" : 377094144,
              "leadID_1" : 128049152,
              "leadID_hashed" : 171184128
      },
      "avgObjSize" : 71425.97884134208
  </code></pre>
  
  <p>My actual disk size is matched with <strong>storageSize</strong>. So what is the size and other keys.</p>