Partitions of integers. Let π(n) count the ways that the integer n can be expressed as the sum of positive integers, written in non-increasing order. Thus π(4) = 5, since 4 can be expressed as 4 = 3 + 1 = 2 + 2 = 2 + 1 + 1 = 1 + 1 + 1 + 1. Prove that the number of integer partitions with at most a positive parts, all of which are at most b, is $$\binom{a+b}{a}$$ (Example: When a = 2, b = 3, the ten partitions are: 3 + 3, 3 + 2, 3 + 1, 3, 2 + 2, 2 + 1, 2, 1 + 1, 1, empty partition)
According to the book this is from it can be proven by considering each partition as a path from (0,0) to (a,b) but I still can't figure it out