Just a bit of extra info regarding the internal field 'rowid'. As
@klaus mentioned above it auto increments when records are added to the db.
But it will not always reflect the number of records in your db.
For instance ... if you enter 5 records into your db, then delete record 2 & 3, then add a 6th record your db will show rowid's of 1, 4, 5, 6.
You can correct this , depending on a condition , but that is getting way over the scope of your question.
this might be of interest.
https://stackoverflow.com/questions/35876171/sqlite-rowid-after-deleting-rows