The number of active rigs drilling for oil and gas in the U.S. rose by 2 to 588 for a third consecutive weekly gain, Baker Hughes said.