getFilesInDir: Actually count the number of files.