Magneto-optical resonance in counterpropagating waves