added result count to util.js