Display correct number of contacts in shared addressbooks.

Fixes #654.