Build a frequency table from order statuses
countBy
Map.merge
groupingBy and eachCount
collections.Counter