Adds {child_count} variable

We needed a {child_count} variable for use on a recent project so I added one, language might not be correct but the idea is a count which resets at every parent.