$(document).ready(function() {
  $('a[@href$=.pdf]').bind('click', function() {
    pdfCountDownload(this.href);
  });
});

function pdfCountDownload(url) {
 // this function will call hajax to send and count pdf downloads
 // these counts will be used to show most requested pdf's
}