Add support for frequency counting of string samples.