public function countTables()
    {
        $count = 0;
        foreach ($this->tables as $table) {
            if (!$table->isReadOnly()) {
                $count++;
            }
        }

        return $count;
    }
public function countTables()
    {
        $count = 0;
        foreach ($this->tables as $table) {
            if (!$table->isReadOnly()) {
                $count++;
            }
        }

        return $count;
    }
public function countTables ( ) { $ count = 0 ; foreach ( $ this -> tables as $ table ) { if ( ! $ table -> isReadOnly ( ) ) { $ count ++ ; } } return $ count ; }
Return the number of tables in the database.

Read-only tables are excluded from the count.

@return integer
Return the number of tables in the database .