updated index.pl added counting of files