Two touches to spring the trap
Each leaf of a Venus flytrap is a hinged trap lined with tiny trigger hairs. Experiments have shown that one touch is not enough: an insect must brush the hairs twice within roughly half a minute before the trap snaps shut. A single brush might be a raindrop or a speck of debris, and closing is expensive, so the plant waits for better evidence.
Once the trap closes, the struggling of the trapped insect keeps stimulating the hairs. The more it struggles, the more tightly the plant seals the trap and the more digestive juices it releases — a rough count of touches guides how much effort to invest.
Why a plant eats animals at all
Flytraps grow in sunny, waterlogged soils that are extremely poor in nutrients, especially nitrogen. Catching insects is the plant's way of mining what the soil cannot give. It still makes its own food from sunlight like other green plants; the prey is a supplement, not a meal of energy.
The whole strategy is a budget. Counting touches, sealing slowly, digesting for days — everything about the flytrap is shaped by the cost of acting on false alarms.

