bash command to find the number of files in a directory

Shell
ls -1q  | wc -l
Source

Also in Shell: