Adding a counter as temp ID

Using new ID for Deleting and updating