You'll probably want to learn the regular unix way as well. Tools like this are nice, but you're already 99% there as it is for most things.
ls | wc -l
ls | grep -c .py
(note the cat and pipe are not needed) awk -F',' '{sum+=$1}END{print sum}' data.csv