Fix counter protobuf message codes