tweaked the count of newlines output by the automation script