Question: how many carbon atoms are there in solid materials?
Answer: It has been estimated that the solid earth as a whole contains 730 ppm of carbon, with 2000 ppm in the core and 120 ppm in the combined mantle and crust. Since the mass of the earth is 5.972×1024 kg, this would imply 4360 million gigatonnes of carbon.