You'll need to use the Peek function in the script to assign the value to the variable.
Try like this, after loading your initial table (let's say it's labeled T_Data):
Load count(distinct abc) as Cnt
let vLoop = peek('Cnt', 0, 'T_Count');
drop table T_Count;
for i = $(vLoop) to 60