var b = a.getResults(x, xxxx); console.log(b.length);