Hi. I'm trying to write a user macro that will accept a page id and give a count of the number of child pages that page has.
I get that I can do this for the current page using $content.getChildren().size(), but I'm getting tangled up trying to do this for any specified page. Would someone be able to point me in the right direction?