def METHOD_NAME(field: Series) -> int:
    logger.info(f"Calculating average number tokens for field {field.name} using sample of 100 rows.")
    field_sample = field.head(100).apply(avg_num_tokens_decoder)
    unique_entries = field_sample.unique()
    avg_words = round(nan_to_num(Series(unique_entries).str.split().str.len().mean()))
    return avg_words