split directory to file count