The number of real solutions of the equation √1+cos2x = √2sin^-1(sinx), -π ≤ x ≤ π is