@Bruce Stephens has nicely covered the calculation once you have the carbs counted.
For carb counting there is usually the amount carbs per 100g on the back of packets of goods. Look at the carbs, not the ‘of which sugar’ (carbs come in all shapes and form, and sugar is only a small part of this) If you weigh your ingredients, then you can work out the carbs in your dish
Weight of your food, divide by 100, then multiply by the (grams per 100g)
The package designers don’t always make this easy, but the info is there.
Another approach is to use an app like ‘Carbs and Cals’ which has pictures of different size meal combinations and gives the carbs, alongside the weight of the portion, for each plateful. If yours looks a bit smaller take I
A bit off, if it looks a bit bigger add a bit on. I know that that is not very scientific but you get better at it.
If that all makes no sense ask again.