I have made a script:
set int=0 for /f %i in (\'type linksonpage.txt\') DO set /a int=%int%+1
It just says 1 every time!