A regular polygon has the sum of the interior angles as 3240degrees . find the number of sides the polygon has.