One. I've found that it doesn't matter if you have two boarding passes, two different seats, two different airplanes, two different models of plane, ... if it is ONE flight number you get ONE segment. Also, the mileage will not be a sum of the flight segments but rather calculated as if it were a direct flight.