def add_versions(nodes, versions):
    """
    In Dutch rechtspraak.nl data, an version can have an annotation.

    :param nodes: list of node objects
    :param versions: list of versions
    :return: list of nodes
    """
    count_version = {}
    count_annotation = {}
    for item in versions:
        id0 = item['id']
        val = item['hasVersion']
        count_version[id0] = count_version.get(id0, 0) + 1
        if val.lower().find('met annotatie') >= 0:
            count_annotation[id0] = count_annotation.get(id0, 0) + 1

    for node in nodes:
        node['count_version'] = count_version.get(node['id'], 0)
        node['count_annotation'] = count_annotation.get(node['id'], 0)
    return nodes