Count subdirectories within a directory code example Example: Count subdirectories within a directory dir *.* /w /s