sharded counter implementation for appengine