Record Count in Data Grid in Editor gives "missing right parenthesis" error

Executing anonymous PL/SQL block in editor and returning REF CURSOR results in grid.

Rt-click on grid and select Record Count gives ORA-907