Print the number of entries (files, directories, symlinks, etc.) in the subdirectories of the current directory, stopping search at any device mount points.
sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n