open a php script in a new window.
at the top of the script, have the code to increment the number of hits. Then either user [man]header[/man] to redirect the browser to the file, or out put the header rows for that file type, read in the file and then output the file to the browser