I am having trouble counting the unique values in an array, and I need to do so without rearranging the array elements.
How can I accomplish this?