First time here? Check out the FAQ!
answered 2017-01-03 21:16:50 -0600
You don't apparently. You have to open the FileStorage and read "class_count" manually. Which does seem like a bit of an oversight.
If it's a problem submit a request to the issue tracker asking for an improvement.