The interior angle of a regular polygon is 7 times as large as the exterior angle. How many sides does the polygon have?