How to make it so the number of coins collected doesn't reset each level?

Hello, in my new game I have been able to create coins and the ability to collect them. My only problem is that the number of coins displayed resets back to zero each time the character enters a new level. Is there any way to solve this? Thank you in advance.

I had a similar problem but I found this

Hope it helps