Finds number of records in given $database. If $condition is given, only records that follow it are counted.
This function returns integer; if $database is not an array, it returns 0 (unlike count, which returns 1).
$c = ptb_count($myDatabase); $c = ptb_count($myDatabase, "'name' == '{$_GET['name']}'");
ptb_count accepts $condition since version 1.1