title: Mathematica: get number of arguments passed to a function?
body: <p>How do I get the number of arguments passed to a function, such as <code>Plus[2,3,4,5]</code> has 4 arguments passed to it. I was thinking it may involve the use of the function Length and getting the arguments into a list. The intention is to iterate an operation based on the number of arguments for a function. There is probably a simple solution or function but I haven't come across it yet. Any other ways or suggestions are welcome as well?</p>