housekeeping: Track total number of optimization calls
While we already track how often we perform specific optimization tasks, we do not have any numbers around how often we perform optimizations in total. As a consequence it's harder than necessary to compute the relative frequency of each task.
Fix this by adding another counter which tracks the total count of times optimizations were performed.