perl -e '++$c for glob "*";print $c' [download]
Seems to be pretty quick, too.
In reply to Re^2: Using Perl saves time.... [GOLF!] by radiantmatrix in thread Using Perl saves time.... by szabgab