A particular solution of the equation
$$a + b + c = 5 \tag{1}$$
in the non-negative integers corresponds to the placement of two addition signs in a row of five ones. For instance,
$$1 1 1 + 1 1 +$$
corresponds to the solution $a = 3$, $b = 2$, and $c = 0$. Thus, the number of solutions of equation 1 in the non-negative integers is
$$\binom{5 + 2}{2} = \binom{7}{2}$$
since we must select which two of the seven symbols (five ones and two addition signs) will be addition signs.
From these, we must exclude those solutions in which $a > 3$, $b > 3$, or $c > 2$. Since $a, b, c$ are integers, this means we must exclude those solutions in which $a \geq 4$, $b \geq 4$, and $c \geq 3$. Since $4 + 3 = 7 > 5$, no two of these restrictions can hold simultaneously.
Suppose $a \geq 4$. Let $a' = a - 4$. Then $a'$ is a non-negative integer. Substituting $a' + 4$ for $a$ in equation 1 yields
\begin{align*}
a' + 4 + b + c & = 5\\
a' + b + c & = 1 \tag{2}
\end{align*}
Equation 2 is an equation in the non-negative integers with
$$\binom{1 + 2}{2} = \binom{3}{2}$$
solutions.
By similar argument, there are $\binom{3}{2}$ solutions if $b \geq 4$.
Suppose $c \geq 3$. Let $c' = c - 3$. Then $c'$ is a non-negative integer. Substituting $c' + 3$ for $c$ in equation 1 yields
\begin{align*}
a + b + c' + 3 & = 5\\
a + b + c' & = 2 \tag{3}
\end{align*}
Equation 3 is an equation in the non-negative integers with
$$\binom{2 + 2}{2} = \binom{4}{2}$$
solutions.
Hence, the number of solutions of equation 1 in the non-negative integers subject to the restrictions $a \leq 3$, $b \leq 3$, and $c \leq 2$ is
$$\binom{7}{2} - 2\binom{3}{2} - \binom{4}{2}$$