import json


def get_value(json_file, key):
    """
    return the value associated with the key in the specified json file

    :param json_file: the json file where the key and value present
    :param key: the key where the value is associated with
    :returns: 0 if there is not key found in the json_file. else return the 
              value associated with the key

    """
    count = 0
    with open(json_file, 'r') as f:
        data = json.load(f)

        if key not in data:
            return count
        count = data[key]
    return count