How many carbon atoms are in the formula H2CO3?

Well if I'm reading your formula correctly you have:

2 hydrogen

1 carbon

3 oxygen

Thus giving you a lovely carbonic acid.