countIn method

int countIn(
  1. String sequence
)

Counts the number of matches in sequence.

Implementation

int countIn(String sequence) => sequence.runes.where(match).length;