Find all directories under the current directory that is on the same filesystem, execute "/tmp/count_em_$$" with the directory as an argument, sort the result numerically from least value to greatest value
find . -mount -type d -print0 | xargs -0 -n1 /tmp/count_em_$$ | sort -n