Keep score in game

so im making a gme but i want it too keep score on how long you can go without falling on.