code: def count_leases_by_owner(self, leases):  # pylint: disable=no-self-use
          
          owners = [l.owner for l in leases]
          return dict(Counter(owners))
docs: Returns a dictionary of leases by current owner.