# of occurrences of unique elements of x←?1e6⍴1000
¯1+{≢⍵}⌸(⍳1000),x 1009 1007 1060 981 1007 1037 1065 1042 1043