According to the Vilna Gaon, zt"l, we count six festival days on which food may be prepared, and Yom Kippur as a Shabbat of complete rest. Count them from Sukkot, and “erev Shabbat after nightfall” is Aseret Yemei Teshuvah, the time to search our pockets.