powered by
Counts the occurrences of a specific pattern in a sequence.
count_pattern(s, p)
Integer count of occurrences
A character string containing the sequence
A character string containing the pattern to count
data(sars_fragment) count_pattern(sars_fragment, "ATTA")
Run the code above in your browser using DataLab