Add path to pref names and count distinct number of prefs.