The measure of each interior angle of a regular polygon is 24 more than 38 times the measure of each exterior angle. Find the number of sides of the polygon.