The secret behind the carnivorous plant's success is its ability to count how many times it is touched.