Using nchar in Hebrew to count characters nchar(x) in base R counts the number of characters in a character vector.