Updated count logic in rotator.