added message size counter