Linux, display the number of file into a directory

This is how you display the number of file into a directory

ls -al | wc -l