See How Things Work

What counting is: matching objects one to one

Unit
Counting
Part
1. Counting
Lesson
1.1

Counting answers the question how many? This lesson defines precisely what that question means and what a count is. The definition rests on a single idea that needs no numbers at all: matching the members of two collections one to one.

Collections

A collection is a group of distinct things considered together: the cups on a table, the letters in a word, the days of a week. The things in a collection are its members. Every member is a single, separate thing: a collection never contains the same thing twice.⁠[1]

The question “how many members does this collection have?” only makes sense once the collection is clearly described. “The letters of the word letter” could mean the six letter positions L, E, T, T, E, R, or the four different letters L, E, T, R. These are two different collections, and they have different answers. A grouping in which the same thing may occur more than once, such as L, E, T, T, E, R with its two Es and two Ts, is called a multiset; it is a different kind of object from a collection.⁠[2] To count the six letter positions as a collection, treat each position (first letter, second letter, …) as a member: the six positions are six distinct things.

Looking ahead.

Here “collection” is used in its everyday sense, which is not a formal definition.⁠[3] Its precise mathematical version, the set, is defined in the unit Sets.

Matching one to one

Whether a table holds as many cups as saucers can be decided without any numbers: place each cup on its own saucer and look at what is left. This procedure is called matching, and it is the foundation of counting.

Definition (One-to-one correspondence).

A one-to-one correspondence between two collections is a pairing of their members such that:

  1. every member of the first collection is paired with exactly one member of the second, and
  2. every member of the second collection is paired with exactly one member of the first.

Both conditions are needed. In the figure below, pairing (b) satisfies the first condition but not the second, and pairing (c) fails the first.

(a) A correspondence(b) A saucer with two cups(c) A cup with no saucer
Figure. Cups (circles) paired with saucers (squares). Only (a) is a one-to-one correspondence. In (b) the marked saucer has no cup and another saucer has two. In (c) the marked cup has no saucer.
Convention.

A one-to-one correspondence is also called a bijection.⁠[4] In the language of functions, condition (1) says that the pairing is a function from the first collection to the second, and condition (2) says that this function is one-to-one and onto.⁠[5] Functions are introduced in the unit Relations & Functions; this lesson needs only the two conditions above.

Example (Checking a pairing).

The pens, cups and keys on a desk are paired with three colored stickers: the pen with the red sticker, the cup with the green sticker, and the key with the green sticker. Is this a one-to-one correspondence between the objects and the stickers?

  1. Condition (1): the pen, the cup and the key each have exactly one sticker. Condition (1) holds.
  2. Condition (2): the red sticker has one partner, the pen; the green sticker has two partners, the cup and the key; the blue sticker has none. Condition (2) fails twice.
  3. So the pairing is not a one-to-one correspondence.
  4. Repair it by pairing the key with the blue sticker instead. Now each object has exactly one sticker and each sticker exactly one object.

Answer: the first pairing is not a one-to-one correspondence; the repaired pairing is. A single bad pairing proves nothing about the collections: what matters is whether some pairing satisfies both conditions.

Definition (Same number).

Two collections have the same number of members if there is a one-to-one correspondence between them.⁠[6][7]

This definition uses no numbers. It says what “the same number” means before any number has been named, and every later statement about counting is built on it. Mathematicians also say that such collections have the same cardinality⁠[6] or are equinumerous.⁠[7]

Game

Pair them up

Round
1
Score
0
Streak
0

Which row has more objects? Do not count: match them. Drag from a circle to a square to pair them, or tap one and then the other.

Properties of “the same number”

Having the same number of members behaves like equality. Name any three collections A, B and C; the letters are only labels for the collections.

Proposition .
  1. Every collection has the same number of members as itself.
  2. If A has the same number of members as B, then B has the same number of members as A.
  3. If A has the same number of members as B, and B has the same number of members as C, then A has the same number of members as C.

In the language of later units, these three properties say that “has the same number of members as” is reflexive, symmetric and transitive.⁠[8] The proof below follows the same three steps as that source.

Proof.

(1) Pair every member of the collection with itself. Each member then has exactly one partner, itself.

(2) Take a one-to-one correspondence between A and B and read each pair in the other direction. The two conditions of the definition simply swap roles, so the pairing is a one-to-one correspondence between B and A.

(3) Take one-to-one correspondences between A and B and between B and C. Pair each member of A with the member of C reached by following its partner in B. Each member of A reaches exactly one member of C, because it has exactly one partner in B, which has exactly one partner in C. Each member of C is reached by exactly one member of A, by the same argument in the opposite direction. So this pairing is a one-to-one correspondence between A and C.

ABCAC
Figure. Left: a correspondence from A to B and one from B to C. Right: following each colored path from A through B to C pairs every member of A with exactly one member of C.
Example (A chain of matchings).

Let A be the letters C, A, T of the word CAT, let B be the letters D, O, G of the word DOG, and let C be three cups, called the first, second and third cup. Show that A and C have the same number of members.

  1. Match A with B: C with D, A with O, T with G. Each letter of CAT has one partner and each letter of DOG has one partner.
  2. Match B with C: D with the first cup, O with the second, G with the third. Again both conditions hold.
  3. Follow the two matchings, as in part (3) of the proof: C goes to D and then to the first cup; A goes to O and then to the second cup; T goes to G and then to the third cup.
  4. The resulting pairing gives each letter of CAT exactly one cup and each cup exactly one letter.

Answer: A and C have the same number of members. No number was needed to show it.

Counting

Matching compares two collections directly, so both must be present. Counting removes that limitation by comparing every collection with one fixed reference: the list of number words, always said in the same order.⁠[9] Each number word is written with a symbol called a numeral.⁠[10]

1
one
2
two
3
three
4
four
5
five
6
six
7
seven
8
eight
9
nine
10
ten
11
eleven
12
twelve
13
thirteen
14
fourteen
15
fifteen
16
sixteen
17
seventeen
18
eighteen
19
nineteen
20
twenty
Table. The first twenty number words, always said in this order.
Definition (Counting).

To count a collection is to match its members one to one with the number words, taken in order from “one” without skipping any. The collection has seven members, for example, exactly when it can be matched one to one with the seven words “one, two, three, four, five, six, seven”. The last word used is the number of members of the collection.⁠[5]

The last word gives the number because the words used form the complete list from “one” to that word. The collection is matched one to one with that list, so, by the definition of “same number”, it has as many members as the list has words. The rule is stated in the same form in the study of how people count: the last number word of a count gives the number of members exactly when the words are said in the right order and are matched one to one with the members.⁠[11]

Example (Counting five stars).
“one”“two”“three”“four”“five”
Figure. Each star is matched with exactly one number word. The last word is “five”.
  1. Point to any star and say “one”.
  2. Point to a star that has no word yet and say “two”.
  3. Continue with “three”, “four” and “five”, each time choosing a star that has no word yet.
  4. Every star now has exactly one word, and the words used are exactly “one” to “five”.
  5. The stars match the list “one, two, three, four, five” one to one, so there are 5 stars.
Example (Two collections hidden in one word).

How many letters does the word BANANA have?

  1. First describe the collection. If it is the collection of letter positions, its members are the first, second, …, sixth letter. Matching them with the number words in order gives “one” to “six”: there are 6 letter positions.
  2. If it is the collection of different letters, its members are B, A and N, because the letter A and the letter N would otherwise be counted several times, and a collection never contains the same thing twice. Matching B, A, N with the number words gives “one, two, three”: there are 3 different letters.

Answer: 6 letter positions, but 3 different letters. Both counts are correct; they count different collections.

Looking ahead.

Numerals from 10 onward use more than one digit. How they are built is the subject of the unit Place Value.

Game

Count by matching

Round
1
Score
0
Streak
0

How many stars are there? Count them: tap each one exactly once, in any order. Each tap gives it the next number word.

Words said: none yet

Every count gives the same answer

A collection can be counted in many different orders. For the definition to make sense, every correct count must end with the same word. This depends on one basic fact about the list of number words.

Fact .

A list of number words starting at “one” cannot be matched one to one with a longer such list.

Looking ahead.

This is a form of the pigeonhole principle: if there are more objects than boxes and every object is put in a box, some box holds at least two objects.⁠[12][13] It is proved by mathematical induction in the unit Mathematical Induction; until then it is used as a basic fact.

Theorem .

Every correct count of the same collection ends with the same number word, whatever order the members are counted in.

Proof.

Suppose two correct counts of one collection ended with different words. Then one of the lists of words used would be longer than the other. The collection is matched one to one with each list. By parts (2) and (3) of the Proposition, the two lists could then be matched one to one with each other. That contradicts the Fact. So the two counts end with the same word.

This theorem is what makes “the number of members” well defined: there is exactly one list of number words from “one” that the collection can be matched with.⁠[14] In particular, the number of members does not depend on the order of counting.⁠[15] Changing the order changes which member receives which word, but not how many words are used.

Example (Counting a row in two directions).

A row holds a cup, a plate and a spoon, in that order from left to right. Count it from both ends.

  1. From the left: cup “one”, plate “two”, spoon “three”. The last word is “three”.
  2. From the right: spoon “one”, plate “two”, cup “three”. The last word is again “three”.
  3. The two counts are different matchings: the cup received “one” the first time and “three” the second time. Both use exactly the words “one”, “two”, “three”.

Answer: 3 objects, as the Theorem guarantees.

Errors in counting

A count is correct only when its matching is one to one and the words are taken in order. No member and no word may be left out, and none may be used twice,⁠[16] and the words must always come in the same fixed order.⁠[17] Each common error breaks exactly one of these requirements:

  • A member is skipped. That member has no word, so condition (1) fails. The last word is too small.
  • A member is counted twice. That member is paired with two words, so condition (1) fails. The last word is too large.
  • A word is skipped, as in “one, two, four”. The words used are not the complete list from “one”. The last word is too large.
Example (Finding the mistake in a count).

Someone counts four apples and says “one, two, three, four, five”, touching the first apple, the second, the third, the third again, and the fourth. What went wrong, and what is the correct number?

  1. The third apple received two words, “three” and “four”. A member was counted twice, so condition (1) fails.
  2. The other three apples received one word each, so five words were used for four apples.
  3. Count again, giving each apple exactly one word: “one, two, three, four”. Every apple has one word and the words are complete from “one”.

Answer: the count was wrong because one apple was counted twice; there are 4 apples, not 5.

Game

Check someone else’s count

Round
1
Score
0
Streak
0

Watch someone count these objects. Was the count done correctly?

The counter says:

What can be counted

Any collection of distinct things can be counted: objects, sounds, steps, events, ideas.⁠[18] The number of members depends only on whether a one-to-one correspondence exists, not on what the members are. Five fingers and five days have the same number of members, although they have nothing else in common.

Historical note.

In 1978 R. Gelman and C. R. Gallistel listed three principles that define counting: one-to-one matching of members with number words, a stable order of the words, and the last word giving the number.⁠[19][11] They added two more that apply in general: anything can be counted (abstraction), and the order of counting does not matter (order irrelevance).⁠[20] In this lesson the first three are the definition of counting, and the last two are consequences of it.

Looking ahead.

Everything here concerns collections that can be counted to the end, called finite collections; the others are called infinite.⁠[21] For collections that never end, such as “all the number words”, one-to-one correspondence gives results that are sometimes surprising.⁠[22] That is studied in the unit Infinite Sets.

Exercises

Exercise .

Cups are placed on saucers, one cup per saucer, until no more can be placed. Three cups have no saucer. Which collection is larger?

▸ Show solution

The cups. When no more pairs can be made, three cups are left without a saucer, so the pairing is not a one-to-one correspondence and the collections do not have the same number of members. The collection with members left over has more.

Exercise .

Four children are each paired with a chair. Two of the children are paired with the same chair, and one chair has no child. Is this a one-to-one correspondence? Which condition fails?

▸ Show solution

No. Condition (1) holds: each child has exactly one chair. Condition (2) fails twice: one chair is paired with two children, and another chair is paired with none.

Exercise .

Two people count “the letters of the word LETTER”. One says six and the other says four. Who is right?

▸ Show solution

Both, because they counted different collections. Counting the letter positions of LETTER gives 6. Counting the different letters L, E, T, R gives 4. Before counting, the collection must be described precisely.

Exercise .

A row of objects is counted from left to right and then from right to left. Explain why both counts give the same number.

▸ Show solution

Both are correct counts of the same collection, so by the Theorem they end with the same word. The direction only changes which object receives which word.

Exercise .

Without counting, show that a person’s fingers and toes have the same number of members by describing a one-to-one correspondence.

▸ Show solution

Pair each finger with the toe in the same position on the corresponding side: left thumb with left big toe, left index finger with the next toe, and so on, and the same for the right side. Every finger has exactly one toe and every toe exactly one finger.

Exercise .

Without counting, show that the letters of the word STOP and the letters of the word POTS have the same number of members.

▸ Show solution

Pair each letter of STOP with the same letter in POTS: S with S, T with T, O with O, P with P. Each word has four different letters, and every letter of STOP has exactly one partner in POTS and every letter of POTS exactly one partner in STOP. So the pairing is a one-to-one correspondence, and the two collections have the same number of members.

No count was needed. The order of the letters in each word plays no role, because a collection has no order.

Exercise .

A collection A is counted and the last word is “four”. A collection B is counted and the last word is “five”. Prove that A and B cannot be matched one to one.

▸ Show solution

Suppose A is counted with the words “one” to “four”, B is counted with the words “one” to “five”, and there is a one-to-one correspondence between A and B.

The count of A is a one-to-one correspondence between the list “one, two, three, four” and A. The count of B is one between B and the list “one, two, three, four, five”. By part (3) of the Proposition, applied twice, the list of four words could be matched one to one with the list of five words. That contradicts the Fact. So no one-to-one correspondence between A and B exists: they do not have the same number of members.

Summary

  1. A one-to-one correspondence pairs two collections so that every member of each has exactly one partner in the other.
  2. Two collections have the same number of members exactly when such a correspondence exists. This relation behaves like equality.
  3. Counting matches a collection one to one with the number words from “one” on. The last word used is the number of members.
  4. Every correct count of a collection ends with the same word, whatever the order of counting.
  5. Skipping a member, counting a member twice, or skipping a word each break the matching and give a wrong number.

Sources

  1. 1.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 122 (the whole topic: pp. 121–124).
    “A set is an unordered collection of distinct objects, called elements or members of the set.”
    Used for: a collection is a group of distinct things; its things are called its members; a collection never contains the same thing twice.
  2. 2.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.2, “Set Operations” (2.2.5, “Multisets”), p. 143 (the whole topic: pp. 143–144).
    “A multiset (short for multiple-membership set) is an unordered collection of elements where an element can occur as a member more than once.”
    Used for: a grouping in which the same thing may occur more than once is called a multiset, a different kind of object from a collection.
  3. 3.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 122 (the whole topic: pp. 121–124).
    “This definition is an intuitive definition, which is not part of a formal theory of sets.”
    Used for: the everyday description of a collection is not a formal definition; the precise version is the set.
  4. 4.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.3, “Functions” (2.3.2, “One-to-One and Onto Functions”), p. 152 (the whole topic: pp. 150–153).
    “The function f is a one-to-one correspondence, or a bijection, if it is both one-to-one and onto.”
    Used for: a one-to-one correspondence is also called a bijection.
  5. 5.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 306 (the whole topic: pp. 306–307).
    “Because every element of A gets pointed to exactly once, the function f is one-to-one and onto. Thus, counting the elements of A is simply a method of establishing a one-to-one correspondence between the sets {1, 2, . . . , n} and A, for some natural number n.”
    Used for: in the language of functions, the two conditions say that the pairing is a function that is one-to-one and onto; counting a collection is matching its members one to one with the number words from “one” on, and the words used measure its size.
  6. 6.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.5, “Cardinality of Sets” (2.5.1, “Introduction”), p. 180 (the whole topic: pp. 179–180).
    “The sets A and B have the same cardinality if and only if there is a one-to-one correspondence from A to B.”
    Used for: the definition of “the same number of members”; such collections are said to have the same cardinality.
  7. 7.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 306 (the whole topic: pp. 306–307).
    “Suppose A and B are sets. We’ll say that A is equinumerous with B if there is a function f : A → B that is one-to-one and onto.”
    Used for: the definition of “the same number of members”; such collections are called equinumerous.
  8. 8.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 309 (the whole topic: pp. 309).
    “It is not hard to show that ∼ is reflexive, symmetric, and transitive, so it is an equivalence relation.”
    Used for: the Proposition (“the same number” is reflexive, symmetric and transitive); its proof follows the source’s proof of Theorem 7.1.3.
  9. 9.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 306 (the whole topic: pp. 306–307).
    “One-to-one correspondence is the key idea behind measuring the sizes of sets, and sets of the form {1, 2, . . . , n} are the standards against which we measure the sizes of finite sets.”
    Used for: counting compares every collection with one fixed reference, the list of number words.
  10. 10.
    “numeral”, Cambridge Dictionary, Cambridge University Press.
    “a symbol that represents a number”
    Used for: a numeral is a symbol for a number.
  11. 11.
    Mathieu Le Corre, “Children acquire the later-greater principle after the cardinal principle”, British Journal of Developmental Psychology 32(2) (2014), 163–177.
    “the last number word of a count denotes the numerosity (or cardinality) of a counted set if and only if the count is recited in the correct order and matches the set on one-to-one correspondence”
    Used for: the last number word gives the number of members exactly when the words are said in the right order and matched one to one with the members; this is the third of Gelman and Gallistel’s principles (1978).
  12. 12.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 6, “Counting”, section 6.2, “The Pigeonhole Principle” (6.2.1, “Introduction”), p. 420 (the whole topic: pp. 420–421).
    “If k is a positive integer and k + 1 or more objects are placed into k boxes, then there is at least one box containing two or more of the objects.”
    Used for: the pigeonhole principle: if there are more objects than boxes, some box holds at least two objects.
  13. 13.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, exercise 11, p. 313 (the whole topic: pp. 306–314).
    “This is sometimes called the Pigeonhole Principle, because it means that if n pigeons are put into m pigeonholes, where n > m, then some pigeonhole must contain more than one pigeon.”
    Used for: the Fact (a list of number words cannot be matched one to one with a longer list) is a form of the pigeonhole principle.
  14. 14.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 306 (the whole topic: pp. 306–307).
    “You are asked in exercise 6 to show that if A is finite, then there is exactly one n such that In ∼ A.”
    Used for: the Theorem that every correct count of a collection ends with the same word: there is exactly one list of number words from “one” that the collection can be matched with, which makes the number of members well defined.
  15. 15.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “The order in which the items themselves are tagged is irrelevant.”
    Used for: the number of members does not depend on the order of counting (the order-irrelevance principle).
  16. 16.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “Each item in a set (or event in a sequence) is given a unique tag, code or label so that there is a one-to-one correspondence between items and tags. No item or tag may be omitted, nor conversely used more than once.”
    Used for: in a correct count no member and no word may be left out, and none may be used twice (the one-to-one principle).
  17. 17.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “The tags or labels must always be applied in the same order (e.g. 1, 2, 3, 4 and not 3, 2, 1, 4).”
    Used for: in a correct count the number words always come in the same fixed order (the stable-order principle).
  18. 18.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “Any types of items may be counted (e.g. birds in a flock or windows in a building).”
    Used for: any collection of distinct things can be counted (the abstraction principle).
  19. 19.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “Gelman and Gallistel (1978) list three criteria that formally define the process of counting.”
    Used for: in 1978 Gelman and Gallistel listed three principles that define counting: one-to-one matching, a stable order of the words, and the last word giving the number.
  20. 20.
    Jacky Emmerton, “Birds’ Judgments of Number and Quantity: Counting Criteria”, Avian Visual Cognition, ed. R. G. Cook, Tufts University (2001).
    “Two other principles generally apply but are not fundamental to the process of counting.”
    Used for: Gelman and Gallistel added two principles that apply in general: abstraction and order irrelevance.
  21. 21.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 306 (the whole topic: pp. 306–307).
    “A set A is called finite if there is a natural number n such that In ∼ A. Otherwise, A is infinite.”
    Used for: collections that can be counted to the end are called finite; the others are called infinite.
  22. 22.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 7, “Infinite Sets”, section 7.1, “Equinumerous Sets”, p. 307 (the whole topic: pp. 307–308).
    “The definition of equinumerous can also be applied to infinite sets, with results that are sometimes surprising.”
    Used for: for infinite collections, one-to-one correspondence gives results that are sometimes surprising.