Compute the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposed.
int The length of the LCS.
function lcs() {
$lcs = 0;
foreach ($this->edits as $edit) {
if ($edit->type == 'copy') {
$lcs += sizeof($edit->orig);
}
}
return $lcs;
}