def extract_ingredient_counts(ingredients_dict, ingredient_labels):
    """
    Extract ingredient counts from dict for plotting in chart.
    :param ingredients_dict: dict mapping ingredient names to counts
    :param ingredient_labels: list of strings containing ingredient names
    :return: list of counts of ingredients
    """

    return [ingredients_dict[ingredient] for ingredient in ingredient_labels]