The number of elements in the set \( S = \left\{ \theta \in [0, 2\pi] : 3\cos^4 \theta - 5\cos^2 \theta - 2\sin^6 \theta + 2 = 0 \right\} \) is:
\( 9 \)
\( 8 \)
\( 10 \)
\( 12 \)