Could you count the files in the directory before deleting them?

Something like:
Code:
echo "Cleaning $dir"; ls $dir |wc -l; rm -rf $dir; echo "Cleaned $dir"