from typing import Dict
from typing import List


def countNumNonAllergenIngredients(finalAllergenMap: Dict[str, str], allIngredients: List[str]) -> int:
   """
   Filters allIngredients down to only ingredients w/o allergens and returns length of said list
   """
   nonAllergenIngredients: List[str] = allIngredients.copy()

   for i in range(len(nonAllergenIngredients) - 1, -1, -1):
         if nonAllergenIngredients[i] in finalAllergenMap.values():
            nonAllergenIngredients.pop(i)
   
   return len(nonAllergenIngredients)