If you return the number of children in a field and have that field in your model you should be able to use that in the template string that is returned in getItemTextTpl
If you return the number of children in a field and have that field in your model you should be able to use that in the template string that is returned in getItemTextTpl