I flew MSY-MIA-TPA. Had a two hour layover in Miami, changed gates/aircraft. The two flights were the same flight number and I ended up getting credit for one segment. This was two years ago, not sure if anything has changed. Since then I pay close attention to flight numbers, as the four times I flew that route I had the same results of 1 segment.