   ]
 
   yearTotal           = 0
+  averageCount        = 0
   maxCount            = 0
   bestDay             = null
   firstDay            = null


  resetValues: ->
    yearTotal           = 0
    maxCount            = 0
    bestDay             = null
    firstDay            = null

    longestStreakEnd   = this.formatDateString longestStreakEnd, dateOptions
    datesLongest       = longestStreakStart + " — " + longestStreakEnd

    this.renderTopStats(countTotal, averageCount, datesTotal, maxCount, dateBest)
    this.renderBottomStats(streakLongest, datesLongest, streakCurrent, datesCurrent)

  renderTopStats: (countTotal, averageCount, datesTotal, maxCount, dateBest) ->
    html = """
      <div class="ic-stats-block ic-stats-top">
        <span class="ic-stats-table">
          <span class="ic-stats-row">
            <span class="ic-stats-label">1 year total
              <span class="ic-stats-count">#{countTotal}</span>
              <span>#{averageCount}</span> per day
            </span>
            <span class="ic-stats-meta ic-stats-total-meta">
              <span class="ic-stats-unit">contributions</span>
              <span class="ic-stats-date">#{datesTotal}</span>
            </span>
