in reply to Multiple Arguments

Well, all the arguments are stored in @ARGV array, so you can get the length of it with

scalar @ARGV;

or alternatively, you can find the number of the last element with

$#ARGV;

I hope that helps...