A Venus flytrap counts: it snaps shut only when the tiny trigger hairs inside its trap are touched twice within about 20 seconds. The trap closes in about a tenth of a second, and digestion starts only after further touches show that live prey is struggling inside.
The plant is native only to the coastal wetlands of North and South Carolina, where the soil is poor in nutrients, so insects and spiders supply the nitrogen it lacks. Each touch of a trigger hair fires an electrical signal similar to a nerve impulse. In 2016 Rainer Hedrich's team at the University of Würzburg in Germany showed how the counting works: two signals close the trap, and further signals switch on the genes for digestive enzymes, so the more the prey struggles, the more enzymes the plant makes. The rule stops the plant wasting energy on raindrops or windblown debris. Digestion takes about ten days, after which the trap reopens. Charles Darwin studied the flytrap closely for his 1875 book Insectivorous Plants and called it one of the most wonderful plants in the world.

