This weekend I was running some processes, which created > 100k files in directories. To monitor the process, I felt it beneficial to just check the number of files from time to time.
in macOS (and other Unix based Operating Systems) you can count the number of files in a directory with the following shortcut:
ls | wc -l
Counting files in large directories