What is the best to make a score system in an endless mobile game

Do you mean, continuously counting while the game is on?