Number of whitespace-separated words in html.
html
static int wordCount(String? html) => toPlainText(html).split(RegExp(r"\s+")).where((String w) => w.trim().isNotEmpty).length;