added length method for ResultSet