Add count to index

Hello - I've added support for _count on an index to retrieve the count of documents in the index.