Relation count methods + duplicate add fix.