def count_funs(self) -> int:
        """ Count function define by this scope """
        n = 0
        for s in self._hsig.values():
            if hasattr(s, 'is_fun') and s.is_fun:
                n += 1
        return n
Count function define by this scope