Visto che a te serve stampare il valore anche se questo non incrementa:

Codice PHP:
<?php
session_start
();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contatore</title>
</head>

<body>

<?php
$file 
'conta.txt';

$fp fopen$file'r+' );

settype$num fread$fpfilesize$file ) ), "float" );

if(
$_SESSION['id_session']!=session_id()){

fseek($fp0);

fwrite$fp, ++$num );

fclose$fp );

}

echo 
'n='.$num;

$_SESSION['id_session'] = session_id();

?>

</body>
</html>
Ovviamente devi mettere sulla stessa cartella anche il tuo file "conta.txt" o variarne il percorso nella variabile $file