Get the length of a String swift

Swift
var test1: String = "Scott"
test1.count

Source

Also in Swift: