Programmatically accessing a term value

The most oft used properties of a taxonomy term have their own methods, like term::getName(). But what do you do when you need a value that does not?
Type:
Tip
Tags:
D9
D8
Back-end
taxonomy
Drupal

Comment Counts in Twig

Views makes it easy to include a node's comment count as a field, but what about when you aren't using fields?
Type:
Tip
Tags:
D9
D8
Drupal
twig

Accessing subfield data in twig

You have a compound field with subfields (like the body field) and want to access a subfield in twig?
Type:
Tip
Tags:
D9
D8
twig
Drupal

Updating to Drupal 8.5 with Composer

I ran into the usual situation of Composer hair-pulling when updating to Drupal 8.5. Here's what worked for me.
Type:
Tip
Tags:
D8
composer
updating
Drupal