More efficient pref tallying