Counting the number of classes is necessary to declare the
amount of storage space to be allocated for the array of
datasets. This is the first pass of the entire encoded owl file
before storing any data. The second pass involves allocating
the actual classes and their properties and building the
datasets. The third pass would read in the instances, their data
types and their values. The resulting data would be stored. It
may be displayed if necessary.