Number of paths