I am trying to think of a way to create a links directory where I can have direct links to any website, but I also need to count the clicks so that I can sort them by most visited or something else. I need to keep the data.

My database is an MsSQL one and I use ASP. NOw how can I create that link lets say
<a href="http://www.abc.com" onclick="asppage">siteTITLE</a>

Is it possible?