One possible way is to redirect all through a common PHP gateway and from there, redirect to the original page you wanted to redirect using Header('Location: yourpage.html');
In the gateway PHP page count the number by incrementing a saved value by 1.