Update number of sections

`instance.sections.length` doesn't seem to update when new sections are added and `child_count` is 0 before the regulation is expanded, so I've combined the two. I feel like there should be a better way to do this though...