Add dbi.size(txn) to return number of entries in db

It's useful to return the size of db, therefore, I add this function.