assignDoseNumber function

Assign dose number to each treatment entry.