The engine reads the <title> element via document.querySelector("title") and measures textContent.trim().length.
<title>
document.querySelector("title")
textContent.trim().length