See Arthur's post for the answer to the problem. Take the following as a couple of failed attempts.
$\fbox{1}$ A natural way of doing it would be to quantify over subsets of the domain:
$\forall_{\langle 5, W, S\rangle}\phi(S)$ is true iff every set S of size 5 consisting of women (W) satisfies formula $\phi.$
The way this works is simple. Given a structure with domain $D$, predicate letter '$W$' has as its extension some subset of $D$, namely, the subset consisting of all women. The special quantifier selects every subset S of size 5 among that extension of $W$ and passes it to the second-order predicate $\phi$. All that is left is to define $\phi(X)$ s.t. it is true just in case there exists (at least, at most, a unique: all easily definable in terms of the standard quantifiers) someone in $X$ who earns more money than her husband (you already know how to approach this).
$\fbox{2}$ Since the language must be first-order, we can't quantify over subsets of the domain, so we can use iterations of standard quantifiers to do the job of the quantifier above, e.g. in the following way:
$\forall_{\langle 5, W, S\rangle}\phi(S) ~=_{df}~ \forall x_1, x_2, x_3, x_4, x_5 ((Wx_1 \land \ldots \land Wx_5) \rightarrow (\phi(x_1) \lor \ldots \lor \phi(x_5)))$
There's a natural way of generalizing this to any size and predicate. If you want "exactly" 5 or "at most" 5, you have to add more stuff to the consequent; this one only covers the "at least" 5 case.