Updated the procedure to decrement the counter while deleting duplicate received events for SR