Problem with the display of the basket icon

Hello,

In Storefront, when a product is added to the basket, the number in the basket icon changes according to the quantity of the product, but I want the number in the basket to be updated according to different products, how can I do this?

What theme do you use?

Hello,
I use to UniTheme 2

design/themes/abt__unitheme2/templates/blocks/cart_content.tpl

try to replace

<i class="ut2-icon-use_icon_cart filled"><span class="ty-minicart-count">{$smarty.session.cart.amount}</span></i><span>{__("cart")}</span>

with

<i class="ut2-icon-use_icon_cart filled"><span class="ty-minicart-count">{$smarty.session.cart.products|count}</span></i><span>{__("cart")}</span>

Then clear cache

(!) Not tested