Partition functions are used to count the number of ways in which a set can be partitioned into disjoint sets.