cainteoir_document: create an estimate word count api