Add 'getTotalItemCount' method to Cart model.