If each interior angle of the polygon is 135°, then each exterior angle is 180° - 135° = 45°.
Hence, number of sides =