added @krasserm resequencer/writer stuff and sharding of counter writes + impl of storedCounter