utf8.codepoint_count()

Returns the number of UTF-8 encoded Unicode code points in the string s. Returns zero if the string does not contain valid UTF-8.

Format

STRING
utf8.codepoint_count(STRING s)