1 Count- failing one test case

Can you instead help me identify the issue with my code? :confused:

for i/p
1 0
0

ur o/p
0
1