I don't think it's too many as long as your LO doesn't seem overwhelmed by it. Since these things are all probably about 1 hour or less, I especially wouldn't be worried, I think it's good for them.
We also go toa gym class with 18 kids, my DS gets overwhelmed by it sometimes. I wish the classes were a little smaller.