/*
 * call-seq:
 *    res.ntuples() -> Fixnum
 *
 * Returns the number of tuples in the query result.
 */
static VALUE
pgresult_ntuples(self)
    VALUE self;
{
    return INT2FIX(PQntuples(get_pgresult(self)));
}