Adding num_args method

Adding the num_args method to retrieve the number of arguments which
follow the opcode.