The value of X is determined as Cultivator of Blades's last ability resolves. It won't change later, even if its power changes. If Cultivator of Blades is no longer on the battlefield, use its power as it last existed on the battlefield to determine the value of X.