Code's here: https://github.com/ekimekim/desertboy
It shouldn't be too hard to add a second counter sprite that updates based on the distance travelled variable each frame, but you'll have to do it yourself. I want this version to remain in its original state as of the end of the Jam where I made it.