Yeah, it counts all the time the game is running, even in background. The problem is that lots of people are facing end of trial even playing less than 10 hours, as can be seen through game progress statistics under Xbox game achievements panel.
People are taking pictures of it just to prove the game didn’t run for more than 10 hours in their console.