Counting Plumbing Fixtures for each pipe (Upgrade)

Hi, just checking back to see if there’s any advancements. I’m actually planning to try my luck. I posted a workflow in this post which I guess was a random idea.

Instead of the pipe upstream, I’m trying to take elements connected to the network and subtract the elements upstream. With that list I can use get elements connected to the connector and compare if it is a plumbing fixture. This I guess can give me the list of fixtures connected. What do you all think?