This can be done. You have to make it work in stages. Think of it this way:
1. If a content is seen, set an xbit A.
2. If content is seen again, and the xbit A (isset), then set xbit B.
3. if content is seen again, and xbit A and B are set (isset), do something.
I believe we do some of this type of stuff in the nxlog.rules. It's using flexbits, but the concepts are still the same.
You can do multiple set, isset, isnotset, unset within a rule.