Updated count / previous count logic.