         collection = 'starred'
 
     counts = feedbin.Counts.get().counts[collection][group]
-    countWas = $(countContainer).text() * 1
+    countWas = countContainer.text() * 1
     count = 0
 
     if groupId

    feedbin.specialCollection = $(event.currentTarget).data('special-collection')

    # Drain hide queue if this isn't the same collection
    if feedbin.selectedFeed && feedbin.selectedFeed[0] != $(event.currentTarget)[0]
      $.each feedbin.hideQueue, (index, feed_id) ->
        count = feedbin.Counts.get().entriesInFeed(feed_id)
        if feed_id != undefined && count == 0
          item = $("li[data-feed-id=#{feed_id}]", '.feeds')
          $(item).addClass('zero-count')
      feedbin.hideQueue.length = 0

    feedbin.selectedFeed = $(event.currentTarget)
    return

        count = counts[groupId].length
    else
      count = counts.length
    countContainer.text(count)

    if count == 0
      countContainer.addClass('hide')
    else
      countContainer.removeClass('hide')

    if groupId || countHide
      container = countContainer.parents('li').first()
      feedId = $(container).data('feed-id')
      if useHideQueue
        if count == 0 && countWas > 0
