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