Is there a way to retrieve the number of parameters passed to a function? I use a function to which I pass a variable number of parameters and I'd like to know how many I passed so I can loop through all of them.

I understand that I can do this by simply using a global variable to keep track, but I was wondering if there was an expression that stores this value. Thanks.