cordovaSQLite incorrect row count

I am querying a table with over 5000 records and everytime I query the result.rows.length count is different. Any ideas would be appreciated?

$cordovaSQLite.execute(db, query).then(function(result) {
console.log('result length: ',result.rows.length);
}, function (err) {
console.error(err);
});