def addToInventory(inventory: dict, addedItems: list) -> dict:
    """Add to inventory

    Adds given list of items to given dictionary inventory.

    Args:
        inventory: Dictionary inventory to add items to.
        addedItems: List of strings to add to inventory.

    Note:
        If the item already exists in the dictionary, its count is incremented.
    """
    for item in addedItems:
        inventory.setdefault(item, 0)
        inventory[item] += 1
    return inventory