Count property of ReadOnlyCollection

class
ReadOnlyCollection

Syntax

Gets the number of elements contained in the System.Collections.ICollection.
public int Count { get; }