Apache Lucene.Net 2.4.0 Class Library API

BitVector.Count Method 

Returns the total number of one bits in this vector. This is efficiently computed and cached, so that, if the vector is not changed, no recomputation is done for repeated calls.

public int Count();

See Also

BitVector Class | Lucene.Net.Util Namespace