title: Elastic search document count
body: <p>I am having a Elastic search running 2.2 version. I have created index and loaded sample documents. I found some problem in it.  When i give </p>
  
  <pre><code>GET index/type/_count
  </code></pre>
  
  <p>I am getting the correct answer </p>
  
  <pre><code>{
     "count": 9998,
     "_shards": {
        "total": 5,
        "successful": 5,
        "failed": 0
     }
  }
  </code></pre>
  
  <p>But when i see the things using <code>http://IP:9200/_cat/indices?v</code></p>
  
  <pre><code>health status index pri rep docs.count docs.deleted store.size pri.store.size     
  yellow open   index  5   1      79978            0     32.1mb         32.1mb 
  </code></pre>
  
  <p>Where docs.count : 79978. Which is wrong.  </p>
  
  <p><strong>Why i am seeing docs.count with wrong value</strong>. The exact document count is 9998 </p>