Record count after SELECT stmt.

Dear All,

I want to count the selected records in a select statement.

Where the select stmt. as like this

Select _DespatchLine where _despatchLine.DespatchID==Despatch.DespatchID;

Here I have to get how many records selected.

Thanks

G.Rajkumar.

int64 totalRecords;

;

select count(Recid) from _despatchLine

where _despatchLine.DespatchId == DspatchLine.DespatchId;

totalRecords = _despatchLine.RecId;