Presence, Count and Sum

These are three ways of counting data in variables.

Presence: Does this element occur in a transaction at least once?

Count: How many times does this element occur in this transaction?

Sum: What is the sum of this quantity in this transaction?