my @dirs = glob '*/'; [download]
To get the number of files, just subtract the number of dirs from the number of everything.
In reply to Re^5: tree command by choroba in thread tree command by Skeeve