Table of Contents

Method Count

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Count()

Returns the number of documents that match the query (ignores Skip and Limit, unlike Size which honors them).

public virtual long Count()

Returns

long

The number of documents that match the query.