Count the items

Write count_items(basket) that returns a dictionary mapping each item in the list basket to how many times it appears.

count_items(["apple", "bread", "apple"])  ->  {"apple": 2, "bread": 1}
count_items([])                           ->  {}
def count_items(basket):
    counts = {}
    for item in basket:
        ...
    return counts