  {
        wordcount = countWords(tot);
    }
    return {"text":tot,"nodes":nodecount,"words":wordcount};
}

function clearInputs()
{
    document.getElementById('minlen').value = "";
    document.getElementById('maxlen').value = "";
    document.getElementById('minnodes').value = "";
    document.getElementById('maxnodes').value = "";
    document.getElementById('minwords').value = "";
    document.getElementById('maxwords').value = "";
    document.getElementById('minmatches').value = "";
