GET index/type/_count will return a top level counter.
docs.countin _cat/indicesreturns the number of all documents, including artificial documents created for nested fields.
This is why you see the difference:
- (.. 9998) , Elasticsearch , .. .
- (.. 79978) , Lucene .
, ES 5 , 1 ES, 6 Lucene. , ES 7 8 .