gives an association whose keys are the distinct characters in string, and whose values give the number of times those characters appear in string.
gives counts of the distinct n-grams consisting of runs of n characters in string.
Basic Examples (3)
Count the distinct characters in a string:
Character counts include all characters, including numbers, punctuation, and whitespace:
Count the distinct 2-gram sequences in a string:
Introduced in 2015