pub fn count(text: &str) -> usize
Counts the utf16 code units that would be in a string slice if it were encoded as utf16.
Runs in O(N) time.