'Prepend superscript denoting the number of hidden children'

def add_superscript(self, title):

    if ((not self.expanded) and self.children):
        return (u'{:d}'.format(len(self.children)).translate(to_superscript).encode('utf-8') + title)
    return title
