First rev of path_stats.sh.
HERE BE DRAGONS