Return actual error count from cli execution.