Add number of posts next to each category/tag

I’m trying to get a hold of a variable for the number of posts in each category/tag.

Docs is currently doing it:

…but would I have to get in the Docs repo and scrounge that code? Or does this variable or (dare to dream) setting already exist?

Cheers.