I cant figure out were I am going wrong in count problem

The code is pasted in the ide and the code passes for the sample test case but fails all other test cases. please help

@knownowworld Please save your code on ide.codingblocks.com and share the link here

Collaborated mode is on

@knownowworld no code is visible onn the ide, can you please save your code and share it?

I have pasted the code in the ide

@knownowworld Please paste your code on ide.codingblocks.com click the save button and then share the link here so i can have a look at your code.The code pair option works only if both of us are looking at that window at the same time, which is not the case

Collaborated mode is on

the ide page is not opening up but I have pasted the code in code editor and also have done the collaborated mode is on

@knownowworld I cannot help you if you dont share your code. The collaborated mode doesn’t work if we are not online at the same time. So i need you to save your code on the online ide and share the link here.

I am online now please help

@knownowworld please check your chat

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.