The Attachments count component makes it possible to show to show the number of attachments for the current document.
To only show the Attachments count component for documents with attachments, add it inside a Conditional visibility component with the following rule:
| Field | Value |
|---|---|
| Apply when matching | At least one rule |
| Rule condition | Attachment list |
| Rule value | Is not empty |