count of char in string swift code example Example: number of characters in a string swift test1.count