Adds count_buckets and most_frequent_terms helpers to Text.