SP.Taxonomy.Term.termsCount property (sp.taxonomy)

Gets the number of child Term objects.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Taxonomy.Term.get_termsCount()

Return value

Integer for total number of child terms.