Avogadro's law states that an equal volumes of all gases, when measured at the same temperature and pressure (STP), contain an equal number of particles.
Ideal gases occur at high temperature and low pressure.
Real gases deviate from ideal gases when low temperature and high pressure.