Added _count and _max rules