Counting measure
In mathematics, specifically measure theory, the counting measure is an intuitive way to put a measure on any set – the "size" of a subset is taken to be the number of elements in the subset if the subset has finitely many elements, and infinity ∞ {\displaystyle \infty } if the subset is infinite. The counting measure can be defined on any measurable space (that is, any set X {\displaystyle X} along with a sigma-algebra) but is mostly used on countable sets.