find number of ways to make change for a given amount