For example find all class/inc/php files under /home/xxx/
time wc -l `find /home/xxx/ -regextype posix-egrep -regex ".*\.(class|inc|php)" -print` | tail -1 | awk '{print $1}'