Count number of directories in the current directory using Linux cli

ls -1 | wc -l