I\'ve written a short count script, with ls $* | wc -l
ls $* | wc -l
when ls is exiting with error code 126 (Arguments list to long), it stop