$res=CIBlockElement::GetList( $arOrder, $arFilter, $arGroupBy, $arNavStartParams, $arSelectFields ); $res->NavStart(); echo($res->NavRecordCount)