There's Intl.Segmenter now which does Unicode Segmentation to count the amount of graphemes for example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Though you are right in that I don't know of a built-in way to count Unicode Scalar Values (USVs).