You can't count every fish in a lake β so ecologists tag some, let them mix, and catch again. Run the whole method with a bag of sweets, then find out how wrong it can be.
Start here β these are the sources that inspired this exploration.
Ecologists estimating a fish population catch a netful, tag them, release them, and later catch again: the fraction of tagged fish in the second catch tells you how big the whole population is. The same trick counts homeless populations, festival crowds and census undercounts. You can run it honestly on your desk: a big bag of pasta or sweets is the lake, a marker pen does the tagging β and because YOU can count the true total afterwards, you can do what ecologists never can: measure exactly how wrong the method was, and then investigate what makes it more or less reliable.