Number of atoms present in CH₄
In Methane, we have 1 carbon atom combining with 4 hydrogen atoms.
It can also be said as
1 mole C + 4 mole of H = CH₄
These atoms combine together to give us 1 mole of CH₄
In the question given, we have 1 mole of carbon and 4 moles of hydrogen.
However, the equation for the formation of CH₄ is quite different as it is formed by hydrogenation of ethyne or ethene.

The above equation are some of the known ways to which methane is formed.
From the explanation above, we have 1 atom of C and 4 atoms of H