The lap number doesn’t seem to match anything. I’ll go 2 or 3 laps around Zwift island and it will still show Laps 0. Eventually it seems to start counting but I haven’t seen exactly when it does that.
I believe it changes when you go under the orange jersey sprint banner. It’s been working like a champ for me.