Select the 'Polygon' Tool (an option in the rectangle / circle / etc tool) As you drag it press the cursor up and down buttons to select the number of corners.