count_matches# count_matches(input, pattern, whole_words, case_sensitive)[source]# Counts the number of times a pattern, or multiple patterns, appears in the input.