Counter overflow handling