The test function must be wrapped by counting_function for this to work.
counting_function
reset_evaluation_counter(fun)
fun
A counting_function as returned by counting_function.
The current value of the evaluation counter.