def get_num_threads(profileDict):
    """
    Returns the number of threads used in the given profile

    Args:
        profileDict (dict): Dictionary of the JSON format of a MAP profile
    """
    assert isinstance(profileDict, dict)

    # Assume that the number of OpenMP threads is the same on all processes, so
    # getting the min, max or mean will give the same value
    return profileDict["info"]["metrics"]["num_omp_threads_per_process"]["max"]