Brute force calculation of path size with max stations