Template:COUNTA/doc

This template counts if the number of existing parameters in a template.

gives:

In a template, you can use this template to count if the variable exists, for example:

If only Tapir and Bagel have value in its parameters,

gives 2.