Hi David,
Thank you so much, all the reading time makes sense now. By the way I made a modification by removing the extra “,” from the code:
$word_count = count(preg_split('/\p{Han}+/u', $clean_content, -1, REG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY));
Thank you again!