Increasing number in URL

I need a script that will take a number, like 2000 and +1 to it repetitively. Thanks in advance!

Sincerely, ET

Try something like this:

set example to 2000

repeat
	set example to example + 1
end repeat