In the second instance, all browsers that connect to your application share a single counter. In the first instance, each browser counts according to its own session.
And, as kubked pointed out, the counter is persisted on disk in the first instance.
Reference: http://webpy.org/cookbook/sessions