how many times to repeat before stopping. If it is 0 (default) then it will last forever (see finished)