Output number of children in a structure
If you want all the descendent too you can use:

{% set totalDescendents = entry.getDescendants().count() %}


https://buildwithcraft.com/docs/templating/entrymodel#getDescendants