Making a counter that counts throughout the levels?

So basically I’m trying to make these rare collectable items, these items are dispersed around the levels. However every time you go to the next level, the counter resets.
How do I make it so that the counter keeps on counting through the levels?

Nevermind, I figured it out.

Good!

Hi, @Bdarty Could you please share your code?

hey, sorry to bother you but what would the code be?