Bash - cd

Jump to a directory, execute a command (ls), & jump back

(cd /tmp && ls)

Count the number of files in a directory:

cd dir; ls -1 | wc -l