I am using this script to count files on my directory and sub-directories:
for i in $(find . -type d) ; do printf "$i %s\t" ; ( find $i -type f | wc -l ) ; done
This script works fine. What I really want it to do is to print only the directories that contain more than 31 files.