Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.NumDocs Method 

Returns total number of docs in this index, including docs not yet flushed (still in the RAM buffer), with regard for deletions. NOTE: Buffered deletions are not excluded. If these need to be excluded, call Commit() first.

public int NumDocs();

Return Value

See Also

IndexWriter Class | Lucene.Net.Index Namespace