In the code you have written a for loop which is looping all the items in the list. So for every item it is updating the column value until it reaches the last list item count.
Use properties.ListItem to update the current item in which you have ItemAdding event will fire.