LayerCount optionally serialized