interrupt/counter

TolpuddleSartre:
The Dim function is an interrupt service routine - it can't take arguments, or return values.

i guess i went about doing this wrong...
any suggestions on how i a can accomplish this task???