int countAny(Iterable<String> patterns) { int c = 0; for (String pattern in patterns) { c += count(pattern); } return c; }