8. The function $J(x)$ is defined by:
$$
J(x)=\left\{\begin{array}{ll}
4+x & \text { for } x \leq-2, \\
-x & \text { for }-20 .
\end{array}\right.
$$

How many distinct real solutions has the equation $J(J(J(x)))=0$ ?