I have a script which stores binary files and metadata i mysql. The files are downloadable by clicking on their name in the output. Is it possible to count the number of download on each file? Matters worse: Files are stored in four categories and each category might have the same file name but different content.