No of moles =
No of moles in 4 gm of methane = = 0.25 moles
no of moles in 11 g of CO2 = = 0.25 moles
No of molecules in one mole of any compound is same, i.e. 6.022 1023
Therefore, no of molecules in 0.25 moles of both methane and CO2 will also be same.