Add logging of number of evaluations.