session counting setup