Converted visit counter to session storage rather than cookie