select to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from shipment') ) ,'/ROWSET/ROW/C')) countfrom dual;