docs: def view_count(self):
          """Return the number of opened views."""
          views = self.list_views()
          counts = defaultdict(lambda: 0)
          for view in views:
              counts[view.name] += 1
          return dict(counts)