Counting files in large directories