public int countIn(CharSequence sequence, CountMethod countMethod) {
        return countIn(sequence, countMethod, SpanCondition.SIMPLE);
    }
public int countIn ( CharSequence sequence , CountMethod countMethod ) { return countIn ( sequence , countMethod , SpanCondition . SIMPLE ) ; }
Returns the number of matching characters found in a character sequence, using SpanCondition.SIMPLE.
The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions.
@param sequence
the sequence to count characters in
@param countMethod
whether to treat an entire span as a match, or individual elements as matches
@return the count. Zero if there are none.