XR219 Would there be a way to add a basic counter to files to show how many times they have been clicked on, or would that require a database?
You mean stats that also show how many times each image has been clicked? It would be possible, and it could store data in a JSON file, although a database is probably better. If I add simple statistics, I would also need to add an interface somewhere where stats can be viewed ...
In general, I prefer to use external counters/stats like goatcounter.com (very simple) or Google Analytics (mostly overkill), because they already have functionality and interface ready. They wouldn't track "image clicks" by default, but that can easily be configured.