Statistics about domains and identities.

fix #491