$$a_1 + \ldots + a_5 = 10$$
where $2\leq a_k \leq 6$ for all $k=1,2,\ldots,5$.
Let $x_k := a_k - 2$, so
$0 \leq x_k \leq 4$, and has the same number of solutions as
$$ x_1 + \ldots + x_5 + 2\times 5 = 10$$
$$x_1 + \ldots + x_5 = 0.$$
However, this has only one solution, that is, $x_1 = x_2 = \ldots = x_5 = 0$.
The original equation seems to have more than one solution.
What went wrong here?