Throws
UTFException if str is not well-formed.size_t count(C)(const(C)[] str) if (isSomeChar!C) @safe pure nothrow @nogcReturns the total number of code points encoded in str.
Supercedes: This function supercedes toUCSindex.
UTFException if str is not well-formed.