in reply to Counting only certain files...

my $numfiles = grep { /\d/ } glob("$config{basepath}/*");

ar0n ]