How to sync changes to Counter <-> Input

Hey guys!
I’m trying to do a shopping cart session.
Initially I added the Counter component, from the Starter Kit (+Add → Project library → Interactive → Counter). And then I put an input. The objective was twofold (as normally occurs in a shopping cart on a large e-commerce site like Amazon.com):
(1) Whenever I updated the Counter, the Input would also update automatically => I achieved this through a Workflow in Counter, doing One vote → Change variable value (global variable referring to the input value);,
(2) Whenever I updated the Input, the Counter would also update automatically => I couldn’t do this, even though I tried different ways.
Can anyone explain to me how to achieve objective 2?
Thanks,
Pedro.

You can create a global variable “counter” and bind the init values of the input and the counter component to that variable. Then add a workflow to the input for an “On change” event and an action of “Change variable value” and set the value to the input’s value