Case #1: 1 Case #2: 2 Case #3: 0 Case #4: 0 Case #5: 1 Case #6: 6 Case #7: 3 Case #8: 9 Case #9: 46 Case #10: 16