Case #1: 0 Case #2: 1 Case #3: 1 Case #4: 0 Case #5: 2 Case #6: 3