How to count files in directory recursively in terminal

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