add recursive count to wc