COUNT is a reserved word, a command actually.
Change it to CNT ot something and it should work.
Code:
for CNT = 1 to 40
pulsout PORTC.1,200
pause 20
next CNT