NewsCounterItem counterItem = new NewsCounterItem();
List<INews> newsList = feed.getVisibleNews();
for (INews news : newsList) {
if (EnumSet.of(INews.State.NEW, INews.State.UNREAD, INews.State.UPDATED).contains(news.getState()))
counterItem.incrementUnreadCounter();
if (INews.State.NEW.equals(news.getState()))
counterItem.incrementNewCounter();
if (news.isFlagged())
counterItem.incrementStickyCounter();
}