values : 1d array-like Returns ------- int : The number of unique values in ``values`` r