Code:
  
while(1) //I dunno if you'll need a condition in here
{
if(infinate_increase < 50)
{
infinate_increase += 1;
}
else
{
infinate_increase = 0;
}
wait(1);
}




The % method might also work as well.