Every president since then , except for Herbert Hoover ( although he did visit ten Latin American countries as President1elect ) , has visited at least one foreign country while in office , and the number of countries visited has generally increased over time .