So far, the syntax of debug.sethook has been the following:
debug.sethook(<handler function>, <"l" | "c" | "r">
No matter the event, the function always took two arguments. The debug.sethook function has an optional, third argument: count. Providing a count will fire a "count" event on every time the specified number of instructions have happened.