You just mentioning Keith already triggered the iteration powers in me 
Try iterating on the list of users and in each iteration store the list of orders:count in a list, use list shifter to generate a list that accepts duplicates to store the numbers.
Then display that list or do whatever, always using list shifter or list popper plugins to not deduplicate a list.