In GooglaAppEngine you cannot rely on the internal state of a servlet.
If you want to have a state, you need to use the provided API from their Cache.
On the mCounter = 9, the same applies: the garbage collector is called when is more appropriate for GAE, and you cannot rely on this.
Moreover, if you are going to scale your instances, no state can be managed in this way, but only through the internal Cache system of GAE.
Hope this helps