countallpaths