Unique Numbers

Hello, I don’t understand how to implement it in glide, could you explain it to me in more detail? I want to generate a number every time a new set of tires is added through a native form (a new row), if the row is deleted, then the number should also be deleted. It’s easy in google sheet, but the other numbers keep sliding up so that they no longer belong together with the unique article