As per the title, I would like to know if there is a way to get the number of documents in a MongoDB index.
To be clear, I am not looking for either of the following:
- How to get the number of documents in a collection --
.count(). - How to get the size of an index --
.stats().