Default Mode Counter

I would like to have code in Cambium devices that before any default modes are entered into a counter is increased indicating a default mode was entered into. Further, I would like to have the logic of what can be done when default mode is entered into expanded to include other actions. It might be a good idea to have a counter that is just an integer and another counter that is more complex such as a value created from the integer counter and other information and the algorithm for how that is stored could be something secret between Cambium Networks and any of their customers that want that option. That would allow inspection when necessary of the integer counter in situations where the integer counter was messed with compared to the other counter.