Redid counting logic