Common items with counts

Write intersection(a, b) that returns the values that appear in both lists, with each value appearing as many times as it appears in both (the smaller of its two counts), sorted ascending.

intersection([1, 2, 2, 1], [2, 2])      ->  [2, 2]
intersection([4, 9, 5], [9, 4, 9, 8, 4]) ->  [4, 9]

The point is to practise Counter intersection.

def intersection(a, b):
    ...