Each exterior angle of a regular polygon is 18 degrees. How many sides does the polygon have?