Solve a path search problem
Wrote a counter