Returns the number of documents in this index.
NOTE: This operation may run in O(maxDoc). Implementations that can't return this number in constant-time should cache it.