Dan Marsden just pointed out that in 2.0 you can't work out how many results there were in a get_recordset without looping through them. Specifically he wanted to know if the recordset was empty.
In the structure returned I see a "num_rows" protected variable ... is this set for all databases? Could we add a method to moodle_recordset class to access it? Something like count() perhaps?