Adding num_rows to count fetched rows

// this will count number of rows fetched in last executed query
$users = $db->get('users');
echo $db->num_rows; // int