'characters' is unavailable: Please use String directly in swift 5

let text: String = "abc"
text.characters.count

in swift 5 write

let text: String = "abc"
text.count