static int numberOfAngleBracketTokens(S s) { int n = 0; for (S t : javaTokWithAngleBracketsC(s)) if (isAngleBracketed(t)) ++n; ret n; }