Let's say the couples are Alice and Art; Betty and Bob; Cathy and Carl; Diane and Dave; and Jeri and Jim.
Jeri didn't shake $8$ hands (else Jim would never have gotten a response of $0$). So someone from another couple shook $8$ hands. By symmetry it doesn't matter who. Let's say Alice shook $8$ hands (every hand except Art's).
Now everyone except Art has $1$ shake, so Art must be $0$ shakes.
Jeri didn't shake $7$ hands (else Jim would not have gotten a response of $1$). So someone else, say Betty shook $7$ hands. Then the only person who could have shaken $1$ hand would be Bob.
Continuing like this: One of the other couples shook $6$ and $2$ hands; and one shook $5$ and $3$.
This means that Jeri shook $4$ hands. (Incidentally, Jim also shook $4$ hands.)