One cup of cooked spaghetti contains around 43 grams of carbs, which is much higher than the daily recommended carb intake for a keto diet.