termCount method

int termCount(
  1. Term term
)

Returns the count where Token.term == term.

Implementation

int termCount(Term term) => byTerm(term).length;