on OS X, wc -l inexplicably outputs whitespace before the result