var Wick = Wick || {};
Wick.MyShoppingList = (function () {
    var currentItemsCount = +$('.shop-list-info_count').text(),
        leftItemsCount = $('.shop-list-info_left'),
        oneItemWordEnding = $('.shop-list-info_one-item'),
        itemsLimit = 100;
    
    if (currentItemsCount === 1) {
        oneItemWordEnding.text('');
    }
    
    leftItemsCount.text(itemsLimit - currentItemsCount);
    
})();
