how can i print say 10000 random numbers and the end it create a report of how many times each number was printed?

thankyou for any help.