mutapath.Path.count

Path.count(sub[, start[, end]]) → int[source]

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.