def count_non_allergen_ingredients(text: str, allergen_ingredients: set) -> int:
    """For parm text which is puzzle input, and parm set of ingredients which are known to be allergens. Return a
       count of the number of non-allergen ingredients listed in recipes."""
    count = 0

    for food in text.split('\n'):
        ingredients, _ = food.split(' (')
        for ingredient in ingredients.split(' '):
            if ingredient not in allergen_ingredients:
                count += 1
    return count