First you want to find the mass of just the Carbon in the compound
12.9 g x 0.367 = 4.73 grams
Then convert that over to moles by dividing by the molar mass of Carbon
4.73 grams / 12.01 = 0.394 mol
Finally then you can multiply by Avogadro's number to convert that over into atoms
0.394 mol x (6.022 x 10^23 atoms/mol) = 2.37 x 10^23 atoms
meaning that the number of carbon atoms present in the compound is approximately 2.37 x 10^23 atoms