well and put a counter here instead of constantly checking results.length