def add_superscript(self, title):
        """Prepend superscript denoting the number of hidden children"""
        if not self.expanded and self.children:
            return f"{len(self.children):d}".translate(to_superscript) + title
        return title
Prepend superscript denoting the number of hidden children
libqtile/layout/tree.py