rowcount

return count of entries

 

alert("Result has "+result.rowcount()+" rows");