This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Case $x\ge0$: $x^2+2x-5x-5-1=0\Rightarrow x^2-3x-6=0$ gives $x=\frac{3+\sqrt{33}}2$ (valid). Case $-1\le x<0$: $-x(x+2)-5(x+1)-1=0\Rightarrow x^2+7x+6=0$ gives $x=-1$ (valid). Case $-2\le x<-1$: $-x(x+2)+5(x+1)-1=0\Rightarrow x^2-3x-4=0$ gives $x=-1,4$: none in the interval. Case $x<-2$: $x^2+2x+5x+5-1=0\Rightarrow x^2+7x+4=0$ gives $x=\frac{-7-\sqrt{33}}2$ (valid). Total: $3$ distinct real roots. Answer: 3.