calculate a links click metric

not fully tested