Originally Posted by NoWindowSeat
Note that JFK-YVR-HKG and SYD-BKK-LHR are counted as one segment due to one flight number.
Only if you take the flight straight through on the same day. If you stopover 24 hours or more in YVR/BKK then it is two segments (and you break various rules).
In the same way HKG-BOM stops in BKK, but you can't get off there either.