How to add distance meter for endless runner

I’ve just started learning how to use ue4 so if this question is a little simple i cant help it.

I want to make an endless runner game however i’m having trouble adding a distance meter to my game that will keep going up as the more i run. There is an example of it that the end of the tutorial series that i was watching but it is never explained how to do it.