Measure output with wc so we do not make a copy of it.
Quote the input file name.