Get a count of only the directories in the current directory
echo */ | wc
you will get out put like 1 309 4594
2nd digit
represents no. of directories.
http://stackoverflow.com/questions/17648033/counting-number-of-directories-in-a-specific-directory