Updating number of units