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