I wanted to iterate over set of directories and calculate total number of files inside each of them (recursively). xargs & find would do it just fine but you can not easily escape pipe inside xargs command. Here is the solution:

ls | xargs -n1 -I{} sh -c 'echo -n "{} "; find {} -type f | wc -l'