count Summary Counts the occurrences of a value inside the array. Usage public unsigned int count(T value) Returns The number of occurrences of the value or object reference. Parameters value The value or object reference to count. Description Counts the occurrences of a value inside the array. For objects, this method will return a count of the references to the object contained in the array. This behavior can be overridden by implementing the System.ILike<T> interface. Examples Basic Usage 1234import System; int[] arr = [ 1, 1, 1 ];Console.log(arr.count(1)); // 3 Share HTML | BBCode | Direct Link