It seems the only time you're upside down is if the train is going down at or around a 90 degree angle. You're either laying on your stomach or on your back throughout the ride, and in any type of loop or corkscrew.
So are you counting inversions when the track is inverted or when you're upside down?