def verify_counts()

in migrate.py [0:0]


def verify_counts(source_search_client, target_search_client):  
    source_document_count = source_search_client.get_document_count()
    time.sleep(10)  
    target_document_count = target_search_client.get_document_count()  
  
    print(f"Source document count: {source_document_count}")  
    print(f"Target document count: {target_document_count}")  
  
    if source_document_count == target_document_count:  
        print("Document counts match.")  
    else:  
        print("Document counts do not match.")