I have created a small alias that will list files and display the number of files at the end. However I fail in passing additional input to the alias.
alias ll='ls -lFh --group-directories-first $@; numFiles=`ls -l $@ | wc -l`; echo $numFiles" files"'
while ll
works as expected ll /home
does not list the content of the home directory