$f(n,m)$ is the number of binary strings with up to $n$ ones and up to $m$ zeros.
Prove that the number of possible strings is: $${n+m+2 \choose n+1} -1$$
I got to the point that: $$\sum_{a=0}^n \sum_{b=0}^m {a+b \choose a}$$
And I also understand that there are $(n+1)$ options for the amount of ones and $(m+1)$ options for the amount of zeros.
As remarked by Daniel Fischer above, you can apply the "hockey stick" identities to find your sum; these are the sums going down the diagonals of Pascal's triangle:
For the inner sum, use
$\binom{a}{a}+\binom{a+1}{a}+\binom{a+2}{a}+\cdots+\binom{a+m}{a}=\binom{a+m+1}{a+1}$;
and for the outer sum, use
$\binom{m+1}{0}+\binom{m+1}{1}+\binom{m+2}{2}+\cdots+\binom{m+n+1}{n+1}=\binom{m+n+2}{n+1}$.
(The first sum goes down a right-to-left diagonal, and the second sum goes down a left-to-right diagonal.)