src/language-handlebars/printer-glimmer.js/countNewLines
function countNewLines(string) {
  /* istanbul ignore next */
  string = typeof string === "string" ? string : "";
  return string.split("\n").length - 1;
}