integer public \Bitrix\Main\DB\Result::getSelectedRowsCount( );
This non-static abstract method returns number of rows in the result.
No parameters