\Bitrix\Main\Entity\Query public \Bitrix\Main\Entity\Query::setLimit( integer $limit );
This non-static method sets a limit for operator LIMIT n.