how to check number of files in a folder mac code example Example: count number of files in directory mac terminal ls -1 | wc -l