fixed bug countIngredients