get_num_calls

Return the number of calls made to handle_command, and reset the counter.