How many National League teams did Nolan Ryan play for in his career?

Two, the New York Mets (1966, 1968-1971) and the Houston Astros (1980-1988).