update qoob\core\db\mysql count variable to use num_rows() if a query is a select or affected_rows() otherwise.