The original problem is there are $r$ identical boxes and $n$ identical balls. Every box is nonempty. Then how many ways of putting balls in boxes?
It is equivalent to the problem of finding integer solutions for the equality: $$x_1+x_2+...+x_r= n$$ and $x_i>0$ for all $1\leq i\leq r$.
Editted by @Sil: Replaced with equality to avoid confusion that this question deals with $x_1+x_2+\dots+x_r\leq n$, which it does not!