add basic children count functionality