CO2 is a non-polar molecule.
CH4 is not planar and it has zero dipole moment, hence, it is non-polar.
N2 has no dipole moment and it is not a greenhouse gas.
SO2 is not a greenhouse gas
H2O, N2O and ozone are polar, planar and greenhouse gases.
So, the answer is 3