The sum of the exterior angles of any polygon is \( 360^\circ \). For a regular polygon, the exterior angle is the same for each side, so the number of sides \( n \) is given by:
\[
n = \frac{360^\circ}{\text{exterior angle}} = \frac{360^\circ}{36^\circ} = 10.
\]