in reply to Perl 'pipe' problem
find blah blah blah | xargs grep orderNumber | wc -l # Update: # or even: find blah blah blah | xargs grep -c orderNumber | awk '{tot+=$1} END{print tot}' [download]