static int countWhere(Collection c, O... data) { int n = 0; if (c != null) for (O x : c) if (checkFields(x, data)) ++n; ret n; }