Two plane mirrors P and Q are aligned parallel to each other, as shown in the figure. A light ray is incident at an angle of θ at a point just inside one end of A. The plane of incidence coincides with the plane of the figure. The maximum number of times the ray undergoes reflections (including the first one) before it emerges out is