Many foods that contain carbohydrates are good sources of fiber, which can help you prevent constipation, lower your cholesterol levels, and control your weight. To count carbohydrates, you’ll need to know which foods contain carbohydrates and learn to estimate the number of grams of carbohydrate in the foods you eat.