added a counter to the index controller of the store stored in session