in reply to newbie writing a counter

Hello,

While I agree with merlyn, writing a counter as a tutorial is a fine idea. I haven't seen anyone give these pointers yet, so I will:

Once you start getting useable error messages, this should be a lot easier to debug.

Scott