I have to count the total number of directories that are in the given directory (note that these are subdirectories).I know how to count for files but am having trouble counting the directories for my script.
How to count subdirectories in a directory in UNIX?
directory