An oil pump jack in Gonzales, Texas.

U.S. crude closed lower on Friday after Baker Hughes data showed an increase in U.S. oil rigs.

Baker Hughes data showed U.S. oil rigs rose by 21 week-over-week to 659. Nevertheless, the count remains down by 903 rigs year-over-year. The gain this week was also only the third increase over the past 33 weeks, bringing the total rig count up to 659, the highest since late May, Baker Hughes said in its report.