countOf
countOf(value: MemberType): Integer;
The countOf method of the Array class returns the number of times the entry specified in the value parameter occurs in the array.
Use the countOf64 method instead of the countOf method, if the number of entries could exceed the maximum integer value of 2,147,483,647.