This line is wrong.
lcdout "Count = ",# counter 'display count value
Should be.
Code:
lcdout $FE,"Count = ",# counter 'display count value
Might cause the program to hang?