Type how many sides you want on your shape. Make sure the number isn't a decimal, over 940, or under 3, because it gets a bit glitchy. (Especially over 1440)
It uses the pen tool to draw the shape.