return $q.all(getUnreadCountPromises).then(function(counts) {
        return counts.reduce(function(totalCount, count) {
          totalCount += count;

          return totalCount;