Currently, I use the following Arcade expression on a field calculation to count the number of attachments a feature has and set that number in the field.
return Count(Attachments($feature))
Is there a simple way to do the same thing in Python? I just want to get a count of the attachments.