owl.on('changed.owl.carousel', function(e) { $('.counter').text([6,7,1,2,3,4,5,6,7,1,2][e.item.index] + ' из ' + e.item.count) });