Can someone help me? I am knew to low carb dieting and am confused how this is considered 3g carbs/serving. The ingredients when added up total nearly 30g or more...

1 tbsp butter | 0 net carbs
3 tbsp almond flour | 3 net carbs
1 tbsp erythritol | 15g net carbs
1 pinch cinnamon | 0 nc
1 egg yolk | 1 nc
1/8 tsp vanilla extract | 0 nc
1 pinch salt | 0 no
2 tbsp sugar free chocolate chips | 12 nc

That totals 31 net carbs going into the cookie. Are carbs calculated differently when baked?

Thank you for your help! It was really yummy so I hope it truly is low carb!