src/QueryBuilder.php
public function countAll(string $table): int
	{
		$sql = 'SELECT * FROM '.$this->driver->quoteTable($table);
		$res = $this->driver->query($sql);
		return (int) count($res->fetchAll());
	}
public function countAll(string $table): int
	{
		$sql = 'SELECT * FROM '.$this->driver->quoteTable($table);
		$res = $this->driver->query($sql);
		return (int) count($res->fetchAll());
	}
public function countAll ( string $ table ) : int { $ sql = 'SELECT * FROM ' . $ this -> driver -> quoteTable ( $ table ) ; $ res = $ this -> driver -> query ( $ sql ) ; return ( int ) count ( $ res -> fetchAll ( ) ) ; }
Retrieve the number of rows in the selected table

@param string $table
@return int
Retrieve the number of rows in the selected table