PHP Coding for Page view Count

hi.this is a page view count.it count automatically to any one enter the website.it start in 1.to refresh or reload a website it's automatically increment a count  .
 
   1.Register the session " session_register('contador'); ".

   
2.next increment contador " ++$_SESSION['contador']".

Note : u refresh or reload page automatically increment value 


Source Code:


<?php
session_register('contador');
echo '<a href="'.$PHP_SELF.'?'.$SID.'">Contador vale:'.++$_SESSION['contador'].'</a>';
?>