def numOfClasses (theDictionary):
    """Returns the number of classes a student is taking.

    .. note::
        Does not couple labs to classes. For instance, BIOL 150 and BIOL
        150L are counted as separate classes.

    :param dict[str, int] theDictionary: The student's class information
        with the class as the key and the number or credits as the value
    :return: The number of classes
    :rtype: int
    """
    return len (theDictionary)