I would like a new function in PSE in the analyses to count the number of children that an element has. I could use this information in an analysis that I want to run.
There is a workaround where I can create a separate rollup function to try to count an attribute if it exists, and I could feed that into an attribute, which I would read back in to my analysis. But I would rather just have a simple function instead of this other complex solution which does not scale well.
It might be helpful to put a flag in the function to identify either counting just down one level (immediate children) or down any level (including children of children).