def get_number_of_classes(labelsCounts):
    """
    Counts how many classes there are in the dataset.

    :param labelsCounts : a dictionary mapping labels to a count of their occurrences.
    :type labelsCounts  : dict

    :return             : the number of different labels in the dataset.
    """
    return len(labelsCounts)
