Display correct number of contacts in shared addressbooks.

Fixes #654.

Please review @jbtbnl @nexusnetwork23 !