Cooking raises the sugar level in the onions. It increases the sugars and therefore, the carb count. That's why we're not supposed to cook them on IP. Cooked onions have more carbs than we are alotted with the veggies. Also, when you cook them you can caramelize them, which really raises the sugar level. But raw are fine!