Oil rig counts rise for first time in three weeks