property Message.AttachmentsCount as Long
Gets the count of message attachments.

TypeDescription
Long A long expression that indicates the count of the message attachments. 

Use the AttachmentsCount property to count the attachments in the message. If the message has no attachments the AttachmensCount property returns 0.