If you use a session value, that value will remain until the session is logged out, That means that no matter the web page the user goes to, when returned to the browse the counter will remain the same value.
Obviously, you can also reset it to cero where you want.