Have on in your .html file:
<a href="http://<myserver_address>/link.php?url=www.phpbuilder.com"> PHP Builder </a>
<a href="http://<myserver_address>/link.php?url=www.internet.com/sections/linux.html"> Linux & Open Source </a>
Then in the links.php have
<?php
<your count code here>
header("Location: http://" . $url);
?>
and if you don't want em to see you linking to a php file just put some javascript in to change the status text.