calculates and displays the number of classes in the ModelBus widget