In this example it is presumed that the array has already been populated. A list box is used to output the number of occurrences found. It is possible to use a different object for output.
In this example it is presumed that the array/list has already been populated. In this example a label is used to output the result. It is possible to use other objects for output.