The number of active rigs drilling for oil and gas in the U.S. gained 1 to 593, their first gain in three weeks, Baker Hughes said in its latest report.