How to make a count of all coins that does not reset

Sorry I didn’t see the link