1) How many people have you been with before your current partner?
2) How many people has your partner been with before you?
Been with = been in a real relationship with.
Ok, real relationship = not a fling. Not someone you went on just a few dates with. Not necessarily sexual, but someone you were with for a while, at least a few months.