Calculating the count

I am not able to understand how to calculate the count in recursion actually because the count that i increase in base case does not reflect after it returns becasue it is a local variable to that function

What should be the approach of calculating count?

Hey @bhavik911
Take static variable count ;
base Case me count increment kr do

Ok ,
If I dont use static , I have to make another function for count , right??

@bhavik911
Okay fine