<connection>->num_rows(field)
This method returns the number of rows accessible in the currently active recordset for a particular connection.
Note:
This method is not applied (it always returns 0) if the the Oracle OCI database library is used.