def METHOD_NAME(self, data, key):
    # A dealer can have multiple brands, so we need to check if there are more than one brand per location
    return sum(1 for pois in data if key == pois.get("key"))