Thank you for your answer !
But actually i am already counting it with the global variable « nb » at the beginning of minimax.
My biggest problem is that : it works most of the time, and the number of recursive calls can be 50 000 even 150 000 when i increase the depth. But in certain positions the nb variable goes to exactly 154 and the the program crashes.
But why would 154 be over the maximum recursion limit when 150 000 doesn’t ?