select files counts files in directory