How do I find out the number of parameters passed into function?

func_num_args() function returns the number of parameters passed in.