Returns the number of logical elements in a persistent sequence field.
MCO_RET classname_fieldname_count(
classname *handle,
mco_seq_no_t *count
);
handle is a valid object handle scoped to an active read-only
or read-write transaction. count receives zero for an empty
sequence or the logical element count otherwise.
With the RLE sequence library, this function returns the expanded logical count, not the number of encoded runs or physical tiles.
mco_seq_no_t count;
MCO_RET rc;
rc = Sensor_readings_count(&sensor, &count);
MCO_S_OK indicates that *count is valid. Other
database and transaction errors can be propagated.