# Bash
shopt -s nullglob dotglob
f=(*)
echo "The current directory contains ${#f[@]} things."

