def count_terminals(self): """Counts the number of terminal (leaf) nodes within this tree.""" return _sugar.iterlen(self.find_clades(terminal=True))