Yes, this could be done, My search on vbulletin.org came up with no valid 'mod' for that criteria, but you know how searches go.
Google: PHP Hit Counters, or PHP Click Counters - There are many php scripts that can do the job.
You might be able to derive something from this:
http://www.hotscripts.com/listing/php-click-counter/
Since this is not a programming question, you can post a programming request either in paid or unpaid forums.
Hopefully, someone else has a better solution idea for you.