Find the number of pairs (a,b) of positive integers such that a + b < 10.
The number of pairs is 10*9/2 = 45.