I am asking for help with solving this exercise:
Find the count of possible integer solutions for equation:
$$x_1+x_2-x_3+x_4-x_5=3$$
There are restrictions for possible values of $x$:
$$ \begin{aligned} &0 < x_1 \le 6\\ -&8 \le x_2 < -2\\ &x_3 \le 1\\ &3 < x_4\\ &2 \le x_5 \le 8 \end{aligned} $$
Note: We should be able to find the count of solutions by using permutations and Inclusion-Exclusion principle.

As a simplification, transform$^\star$ $x_i$ to $y_i$ so that all variables are atleast positive.
$$y_1 + y_2 + y_3+y_4+y_5 = 15\\ y_1 \in [0,5]\\ y_2 \in [0,5] \\ y_3 \in [0,\infty] \\ y_4 \in [0, \infty] \\ y_5 \in [0,6] $$
Now the bounds in place, it is simple to use inclusion exclusion principle.
$$ \begin{align} N &= N_{y_i \in [0, \infty)} \\ &- (N_{y_1 > 5} + N_{y_2 > 5} +N_{y_5 > 6}) \\ &+(N_{y_1 > 5 \land y_2 > 5} + N_{y_2 > 5 \land y_5 > 6}+N_{y_1 > 5 \land y_5 > 6}) \\ &- (N_{y_1 > 5 \land y_2 > 5 \land y_5 > 6}) \end{align} $$
Now the rest is pretty straight forward using the classic stars and bars:
$$\binom{19}{4} - \left(\binom{13}{4} +\binom{13}{4} +\binom{12}{4} \right)+\left(\binom{7}{4} +\binom{6}{4} +\binom{6}{4} \right)-0 = \boxed{\color{maroon} {2016}}$$
Edit
$^\star$In this edit I try to explain how we can transform the $x_i$ to $y_i$
We start with $x_1 \in [1,6]$, so $x_1 - 1 \in [0,5] $
Now $x_2 \in [-8,-2)$ or $x_2+8 \in [0,5]$
$x_3 \in (-\infty, 1]$ or $-x_3 \in [-1, \infty)$ and $-x_3+1 \in [0, \infty)$
And then $x_4 \in [4, \infty)$ so $x_4-4 \in [0, \infty)$.
Lastly $x_5 \in [2,8]$ or $-x_5 \in [-8,-2]$ and $-x_5 + 8 \in [0,6]$
Now sum all the inequalities in the end of each numbered point. Call each expression in variable as new variable $y_i$. Required equation is:
$$(x_1 - 1) + (x_2+8) + (-x_3+1) + (x_4-4) + (-x_5+8 ) = 3 + (-1+8+1-4+8) \\ y_1 + y_2 + y_3 + y_4 + y_5 = 15$$