You can rewrite this as `str(component.get('UID', counter))`.