Yes, I have, but most of it was not because I wanted out of the specific class or I had something "better" to do. Back when I was in school, I was the bullied kid in class, constantly picked on. But while I was miserable, I also had a great sense of obligation, I felt that I had to go to school, go to my classes and do my best in spite of everything. Even when people gave me legitimate reasons to stay home, if I, personally, felt it wasn't a good enough excuse, I simply couldn't allow myself to stay home.
Then the year I turned 13, something just snapped one day, and I ended up running away from school in the middle of PE (we were having it outside). I didn't run all the way home, only halfway, and then my sense of obligation took over and I returned. No one said anything, it was already forgotten. The next time it happened I ran further, and the time after that I ran even further, when I finally ended up in my own street. That day I didn't turn around, instead I went inside.
This became my new coping mechanism. Whenever the other kids got particularily nasty with me and I felt I couldn't take it anymore, I simply got my things and went home - didn't matter if I had 1, 2 or even 3 classes left. No one said anything, my parents were not notified (the teachers had already ignored everything to do with my being bullied so I suspect they feared what my parents might say to them about my running away). Then one day, when the other kids got particularily nasty in the middle of class, I got up, got my things and walked out of the classroom. No one said anything about that either.
So yeah, I don't have the exact number, but I've cut a lot of classes in my youth. Thankfully at a later school I got teachers who managed to at the very least keep it out of the classroom and also gave me a place to go to if I needed to escape my classmates during recess. I didn't cut any classes there.
I cut classes a couple of times in high school (I went to school in another town, so a couple of times I would cut early on a friday so I could take an earlier bus home and get more of a weekend), but I was careful not to do it too much and make sure my grades didn't suffer for it. Same with college, would sometimes choose to skip a class in favor of sleep, but made sure to keep up with the material so that I would pass my exams.