It turns out, these plants can count.