From the definition of exact:
- The zero dimensional image of $0$ is the kernel in the map $\mathbb{Z}^a \rightarrow \mathbb{Z}^b$.
- The $a$ dimensional image of $\mathbb{Z}^a$ is the kernel in the map $\mathbb{Z}^b \rightarrow \mathbb{Z}^c$, so the image has dimension $b-a$.
- Likewise, the image in $\mathbb{Z}^c \rightarrow \mathbb{Z}^d$ has dimension $c-(b-a)$.
- Finally, the $c-(b-a)$ dimensional image in $\mathbb{Z}^c \rightarrow \mathbb{Z}^d$ must be all of $\mathbb{Z}^d$, since the next map has all of $\mathbb{Z}^d$ as kernel.
So we have $d = c -(b-a)$. Adding $a$, $b$, and $c$ to both sides, we have \begin{align*}
a+b+c+d &= a+b+c + c - (b - a) \\
&= a+b+c + c - b + a \\
&= 2a + 2c \\
&= 2(a+c) \text{,}
\end{align*}
so is even.
(If you are concerned about the somewhat cavalier use of the rank-nullity theorem on these free $\mathbb{Z}$-modules (in fact for any module over a PID), see Rank-nullity theorem for free $\mathbb Z$-modules.)