interrupt/counter

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