The ratio of an interior angle to the exterior angle of a regular polygon is 7:2. Find the number of sides of the polygon.