Method Count
Count<TInput>()
Creates a $count stage.
public static PipelineStageDefinition<TInput, AggregateCountResult> Count<TInput>()
Returns
- PipelineStageDefinition<TInput, AggregateCountResult>
The stage.
Type Parameters
TInput
The type of the input documents.