Getting stuck on something that I feel should be easy, so I'm guessing I'm missing something simple...
I have some data that looks like this:

I use an HTTP call to get some data from a website we use to manage these pipelines, and then I'd like to loop through these 5 array elements and - if the pipeline_id matches what comes from the HTTP call - I'd like to increment the 'count' by 1, and then increment the 'value' by whatever the value of the current item is from the HTTP call. I have tried using both Compose and Select and both choke, so I can only assume I'm doing it wrong. Any help would be much appreciated!
Attempt 1 - Compose
With compose, I used this as the input:
setProperty(variables('Pipelines')[variables('PipelinesIndex')],'count',add(variables('Pipelines')[variables('PipelinesIndex')]?['count'],1))
Here is the explanation of the variables:
variables('Pipelines') is the data I have in the screenshot above.
variables('PipelinesIndex') is just the index value of the loop as it iterates through variables('Pipelines')
So basically if I find a match between the pipeline_id's, then I try to update the count by 1. Similarly, I do this with the value element (it basically looks the same).
The error I get here looks like this:

OK, so it doesn't like me updating the Pipelines array with JSON. So how about using Select instead?
Attempt 2 - Select
So I figure maybe I can use Select on one of the specific elements of the array, like this:

Here, the From input has one of the elements of the Pipelines array (again, whichever one is the matching pipeline_id).
I then try to add the count and value like I did above. But this results in the following error:

So this one chokes too, as it's looking for an Array and I'm trying to update JSON data within an array. What I anticipate here is that if I feed it the ENTIRE Pipelines variable, it's going to try to update every element within the array, and I don't want to do that.
So...how would I go about updating one single element of JSON data within an array of JSON objects?
Thanks very much for taking a look!