3 ms·The first two can be done with wc: ls | wc -l ls | grep .py | wc -lby Denvercoder9 12y agoThe first two can be done with wc: ls | wc -l ls | grep .py | wc -l