Correct total counter handling.