code: protected BigDecimal calculateScoreBasedOnEventsCount(final Authentication authentication,
                                                            final Collection<? extends CasEvent> events,
                                                            final long count) {
          if (count == events.size()) {
              LOGGER.debug("Principal [{}] is assigned to the lowest risk score with attempted count of [{}]", authentication.getPrincipal(), count);
              return LOWEST_RISK_SCORE;
          }
          return getFinalAveragedScore(count, events.size());
      }
docs: Calculate score based on events count big decimal.
  
  @param authentication the authentication
  @param events         the events
  @param count          the count
  @return the big decimal