def count_occurences(
    foods:list[tuple[list[str],list[str]]],
    ingredient:str
) -> int:
    """Count how many times a given ingredient occurs in all foods"""
    return sum(ingredient in ingredients for ingredients, _ in foods)