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; [download]
or alternatively, you can find the number of the last element with
$#ARGV; [download]
I hope that helps...