U.S. oil and gas rigs rise to highest since May