I would assume a rewrite counts as a bunch of line changes -- absent evidence to the contrary. Obviously, if you're changing the language that changes the equation, some bugs which can happen in C++ simply cannot happen in Rust, for example.
(And yes, I meant "positively correlated with".)
Is a rewrite considered as bunch of line changes or not? I would say not.
Also, can I assume that by "correlated with" you mean "positively correlated with"?
If so, isn't a rewrite reducing bug count because you'll end up with far fewer "changed" lines?