knapsack/number of ways to add to a particular number