Add shortest path counting to analyze.