Added all directory file names into an array incrmenting the number of files as I go