Go back to the hierarchy and select one of the ElementInfo, under UICanvas/Infos:
In the inspector you will see a component attached to it "UIElementInfo".
This component is responsible for updating the UI whenever an entry in the dictionary is added or removed for a specific element. Let's check out the code to see how we can register to useful callbacks.
OnItemAdded / OnItemRemoved
In this case, the first time a certain element is spawned, we want to enable the count text. Therefore, we can use the OnItemAdded event and do this. Similarly, when an element is removed from the dictionary (when the count is 0, see previous code page), we want to disable the count text.
Now, when an element is already in the dictionary but only the amount is changing, we simply want to update the count text. Therefore, we register to the Modified event, and update the count text with the value of that key (using the element we have referenced as the key)