The tuple written count comes as None and not Some(0) when now rows are written. So we need to do a getOrElse