The counter is initialized by random number on power-up and incremented on each change in the current alarms table: alarm addition or deletion.
Sources for this description
Multiple manufacturers; see the original MIB MIB copies (LibreNMS/Observium Community)