If you want to get file count in a directory using *nix terminal, run the below command:
find /path/to/folder/ find -type f | wc -l

If you want to get file count in a directory using *nix terminal, run the below command:
find /path/to/folder/ find -type f | wc -l