in reply to Enforcing formal arguments at compile time?

Adding this should give you the count
my $argCnt = @_;