How to show a download count on files uploaded to a post (Pro hosting, theme component only)?

@Jessica_S Interesting requirement! A few questions:

  1. Do you need total downloads or unique downloads per user?

  2. Should downloads from guests also be counted?

  3. Are you open to an external API for tracking if Discourse doesn’t expose attachment download events?