In addition to the excellent macro that @gglick provided, here is a macro which provides several means for specifying the Folder Path, and may be faster if there are many (>> 100) files in the folder:
MACRO: Get Count of Files in Folder [Example]
It makes use of a fast, reusable Bash Shell Script:
