static int countLines(S s) { ret l(toLines(s)); // yeah could be optimized :-) }