How many sides does a regular polygon have if the measure of an interior angle is 165 degrees?