The Count operator collects all the values from the source sequence and emits a single value representing the total number of elements in the sequence. The single result value is emitted only when the source sequence terminates successfully.
Examples
Use Count to report the total number of elements at the end of a sequence.
Related Operators
Use ElementIndex instead to continuously track the number of elements in the sequence.