def count_sequences(data):
    """Count the number of JSON NE sequences.
    
    :param data: Dictionary of NE sequences
    :type data: Dictionary
    :return: Number of NE sequences
    :rtype: Integer
    """

    count = 0
    try:
        for value in data.items():
            if isinstance(value, list):
                count += len(value)
    except:
        print('Invalid NE sequences format') 
    return count