The number of solutions of \( |\cos x|=\sin x \), such that \( -4\pi \le x \le 4\pi \) is:
\( 4 \)
\( 6 \)
\( 8 \)
\( 12 \)