print the length of string in swift code example Example: Get the length of a String swift var test1: String = "Scott" test1.count