I am able to list all the directories by
find ./ -type d
I attempted to list the contents of each directory and count the number of files i
find . -type f -printf '%h\n' | sort | uniq -c
gives for example:
5 . 4 ./aln 5 ./aln/iq 4 ./bs 4 ./ft 6 ./hot