mac see number of files terminal code example Example: count number of files in directory mac terminal ls -1 | wc -l