Standard LibraryTypesstringMethodscountOn this pagecount Method of string. count(const string value) -> integer Returns the number of occurrences of the specified value in the container. Parameters value: The value to count.