Have a global number variable called "Attempt".
Insert a Text object in the layout, where you want the player to read the number of attempts.
In its Properties set the text to "Attempt 1".
When the player dies/fails, add 1 to that variable and set that text to "Attempt &Attempt".