Count characters of a string in Ruby
size methods are available for
count = str.length
count = str.size
The core language does not provide a way to count grapheme clusters. If you know of a library with this functionality, please contribute it here.