Returns one greater than the largest possible document number. This may be used to, e.g., determine how big to allocate an array which will have an element for every document number in an index.
IndexReader Class | Lucene.Net.Index Namespace