How many nonzero complex numbers $z$ have the property that $0$, $z$, and $z^3$ when represented by points in the complex plane, are the three distinct vertices of an equilateral triangle?