Automatic counting nodes, taxonomy terms, …

Is there a way (or a module) to get certain values out of drupal?
– Number of nodes (eg recipes)
– Number of nodes with a given taxonomy term (eg recipe with tomato)

I’d also would like to use those values in other nodes (similar as tokens) or block.

For example:
We now have 100 recipes, 10 which contain the ingredient tomato.

Is this even possible? Any suggestions?

Drupal version: