add functionality to count duplicate items in cart