Compute number of distinct values in an array