added a shopping counter and store session variable