If Netherborn Altar leaves the battlefield while its ability is on the stack, the amount of life you lose is determined by the number of soul counters it had on it immediately before it left the battlefield.