Ok, lets look at your flow. First edit each of the inject nodes and set the intervals to none so you will have to press the inject to trigger it.
Next add a debug node ( set to dsplay the complete msg object) to the output of the change node.
Now run the 'conter' flow, look at the debug output and look at the function node. What do you notice?