Edited ShoppingCart.AddItem() to simplify the counting functionality.