public Long getOccurrences() {
    return occurrences;
  }
Gets the number of occurrences of this alert in its current state. States
which are not {@link AlertState#OK} are aggregated such that transitioning
between these states should not reset this value. For example, if an alert
bounces between {@link AlertState#WARNING} and {@link AlertState#CRITICAL},
then it will not reset this value.

@return the number of occurrences.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java