Refactored counters and error handling around updating genbank files