Function for attachment count
Is there a way to retrieve the number of attachments associated with a given record? Ultimately, I would like to display this information in a view and, possibly, perform some logic based on that count
You can use
count(files(this)). Here is a link to the language reference...