so basically it counts how many pumps are connected to the input side of the washbox, and instead of iterating all fluid connections to figure out the members of a fluidbox it instead checks the other way around by just checking which fluid network id each pump is on.
inside the washbox there are linked connections that decouple during this check so that the output side of the washbox does not get considered.