Include preference in _count serialization and builder. [#2698]