How do you make mistake count show over multiple screens?

Hello! Me and my classmate have to make an app for class and at the end of the app we want to code it to show how many mistakes the user has made in the whole app. We can't figure out how to add all the mistakes together from all the screens. This is due one Tuesday, help would be appreciated!

What mistake?

For multi screen counting, you can use Tinydb.

We tried to use a Tinydb but we cant figure out how to code it correctly. We have multiple screens in which the user has to type in a Spanish version of the English word shown on the screen and on the last screen we want it to show how many mistakes the player made in total.

I figured it out! Thank you

Great
Please provide a screenshot of the working solution to help others with the same problem in future

Taifun