If the sum of the interior angles of a regular polygon 1260 degrees, how many sides does the polygon have?