fixes #5857 include custom fields in contact count