import json


def read_metadata(json_path):
    """
    Read number of data and number of classes from JSON file
    """

    with open(json_path) as json_file:
        metadata = json.load(json_file)

    return metadata['num_data'], metadata['num_classes']