According to Avogadro's hypothesis, equal volumes of all gases under the similar condition of temperature and pressure contains an equal number of molecules.
Equal volumes contain equal no. of molecules.
Hence no. of atoms of H2, He, O2 and O3 will be in the ratio 2:1:2:3