Implement the `n_tables` method

`n_tables` counts the number of `CREATE TABLE` statements in the schema.