1. find the total line number of a fold for some files:
find test -iname *.java | xargs wc -l | tail -1
2. count # of files in each folder recursively
for t in `find . -type d -ls | awk '{print $11}'`; do echo "$t `find $t -type f | wc -l`" ; done > ~/count.txt