use a while loop and increment manually

eg

cnt = 0
while(cnt < 100)
{
do something
cnt += 1;
}