U.S. rig count up for first time in 7 weeks