count Matching
inline fun <ID : Any, T> Field<ID, T>.countMatching(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<FieldEntry<ID, T>>): Int
Counts the number of field entries that satisfy the given predicate.
By default, the local entry is excluded from the count. It is included only if reductionType is IncludingSelf.
Return
the number of entries that satisfy the predicate.
Parameters
reduction Type
specifies whether to include the local entry in the count (default is ExcludingSelf).
predicate
the condition to evaluate for each entry.