Oil extended gains after Baker Hughes reported that the weekly U.S. oil rig count fell for the 25th straight week.