session_start() isn't enough.

<?php

session_start
();

if (!isset(
$_SESSION['visits']))
{
    
$_SESSION['visits'] = 1;
}
else
{
    
$_SESSION['visits']++;
}

echo 
$_SESSION['visits'];

?>
Output
1