In Swift a character is a grapheme cluster, and so the length (count) of a string is in fact the number of grapheme clusters it contains.
The number of codepoints (which is almost always useless but what some languages return) is available through the unicodeScalars view.
The number of code units (what most languages actually return, and which can at least be argued to be useful) is available through the corresponding encoded views (utf8 and utf16 properties)