Fix add_document to return count of processed document
Regenerate