Version: v2.6.0
count
Count matching rows in a table.
count($table, $where)
count($table, $join, $column, $where)
Return Value
[int] The number of matching rows.
This method always returns an integer.
$count = $database->count("account", [
"gender" => "female"
]);
echo "We have {$count} female users.";