Get record count in the result-set.
Returns number of elements contained in the specified result-set.