...and [man]array_count_values[/man] will count the number of times each value appears in the array; if they're all unique, then the result will be the same length as the original, and all the array values will be 1.
PHP has lots and lots of array manipulation functions. Have fun.