Sonos track-counter

I tried making a counter that counts how many tracks the Sonos has played with the
“When track changed” Sonos card, adding a +1 on a variable.
But it doesn´t seem to work, so I´m wondering what triggers the “When track changed” event…? Is it only if you physically change track on the buttons on one of the units, or if I change track in the app…?

I want to automatically play the news after 3 tracks in the morning, so if anyone has other ideas how to achieve that, I´m open for ideas!
I had it working with timers, but I wanted a more elegant solution where it didn´t cut off in the middle of a song…