I want to count the amount of unlocks, now there are post like this, but they don\'t explain how to efficiently count unlocks while the app is closed, can I get any code exa