record the number of function evaluations