def index(self):
        """Produce HTTP response body of hit counter app index URI."""
        # Increase the silly hit counter
        count = cherrypy.session.get('count', 0) + 1

        # Store the new value in the session dictionary
        cherrypy.session['count'] = count

        # And display a silly hit count message!
        return (
            """
            During your current session, you've viewed this
            page %s times! Your life is a patio of fun!
        """
            % count
        )
Produce HTTP response body of hit counter app index URI.
cherrypy/tutorial/tut07_sessions.py