count = sys.get_gcount();
count = sys.get_gcount(<CBNAME>);
Or more generally
count = sys.get_gcount([<CBNAME>]);
In most cases, sys.get_gcount() will be used without arguments.
When used this way, it will work with the current CB.
Arguments are allowed so that you can get CB EOF rcd counts without needing
to be processing a particular CB.