Use Function's arg_size() and size() methods.