N Queen Count Help needed in debugging

Sir, could you please tell me that where i am going wrong in counting no. of solutions?

I have edited your code… Try to submit now…