Which nation is devoid of counsel?
Rashi #1 (according to R. Nechemyah in the Sifri) and Ramban: The enemy nation to which the Torah referred in the previous Pasuk.
Rashi #2 (in Pasuk 42, according to R. Yehudah in the Sifri) and Targum Yonasan: It refers to Yisrael. 1
In what way were they devoid of counsel?
Rashi #1 (according to R. Nechemyah): Because if they 1 had been wise, they would have attributed their astounding victory over Yisrael 2 to the Rock of Yisrael.
Rashi #2 (according to R. Yehudah) and Sifri: They (Yisrael) did not keep the Torah - which is their wise counsel, 3 and did not reflect how one of the nations could pursue a thousand... !'