Store count of children in "length" field