For keeping the score you will need to implement a new class:
In this class, try to construct some writing visible on the game screen that shows you how many rocks have you successfully jumped over.