The output of `wc -l` includes leading white-space, and at least in FreeBSD 11, `expr 1 + "$foo"` fails when "$foo" (captured as `wc -l` output) has leading whitespace. Instead, just emit one more line for "wc" to count.