function that could be used for displaying the child node count of a parent