Returns the total number of documents that match the search.
The totalCount returns the total number of documents that match the search, not just the number of documents in the current page.
totalCount