limit to number of files in a directory