Let $\omega$ be a complex number such that $\omega^3 = 1$ and $\omega \neq 1$. Find the number of distinct complex numbers $z$ that satisfy the equation $z^6 + z^3 + 1 = 0.$ Let's think step by step and output the final answer within \boxed{}.
user