How Many Carbs in a Bagel?

Oh my god there are 31g carbs in one bagel. Well there goes the diet. I love bagels, they are so delicious. But I have to watch how many I can eat.