import sqlite3
import sys

connection = sqlite3.connect(sys.argv[1])
count = connection.execute(
    "select count(*) from sqlite_master where type='table' and name='peer'"
).fetchone()[0]
print(count)
