Return, for the 1-D array x, the number of times each unique value occurs, as a 1-D array of counts ordered by ascending value.
x
solve(...)