בכורות ט:ז · Bekhorot 9:7

כֵּיצַד מְעַשְּׂרָן, כּוֹנְסָן לַדִּיר וְעוֹשֶׂה לָהֶן פֶּתַח קָטָן כְּדֵי שֶׁלֹּא יִהְיוּ שְׁנַיִם יְכוֹלִין לָצֵאת כְּאַחַת, וּמוֹנֶה בַשֵּׁבֶט, אֶחָד, שְׁנַיִם, שְׁלשָׁה, אַרְבָּעָה, חֲמִשָּׁה, שִׁשָּׁה, שִׁבְעָה, שְׁמוֹנָה, תִּשְׁעָה, וְהַיוֹצֵא עֲשִׂירִי סוֹקְרוֹ בְסִקְרָא וְאוֹמֵר הֲרֵי זֶה מַעֲשֵׂר. לֹא סְקָרוֹ בְסִקְרָא וְלֹא מְנָאָם בַּשֵּׁבֶט, אוֹ שֶׁמְּנָאָם רְבוּצִים, אוֹ עוֹמְדִים, הֲרֵי אֵלּוּ מְעֻשָּׂרִים, הָיָה לוֹ מֵאָה וְנָטַל עֲשָׂרָה, עֲשָׂרָה וְנָטַל אֶחָד, אֵין זֶה מַעֲשֵׂר. רַבִּי יוֹסֵי בְּרַבִּי יְהוּדָה אוֹמֵר, הֲרֵי זֶה מַעֲשֵׂר, קָפַץ (אֶחָד) מִן הַמְּנוּיִין לְתוֹכָן, הֲרֵי אֵלּוּ פְטוּרִין. מִן הַמְעֻשָּׂרִים לְתוֹכָן, כֻּלָּן יִרְעוּ עַד שֶׁיִּסְתָּאֲבוּ, וְיֵאָכְלוּ בְמוּמָן לַבְּעָלִים:
In what manner does one tithe the animals? He gathers them in a pen and provides them with a small, i.e., narrow, opening, so that two animals will not be able to emerge together. And he counts the animals as they emerge: One, two, three, four, five, six, seven, eight, nine; and he paints the animal that emerges tenth with red paint and declares: This is tithe. Even if he did not paint it with red paint, or if he did not count the animals with a rod in accordance with the verse: “Whatever passes under the rod, the tenth shall be sacred to the Lord” (Leviticus 27:32), or if he counted the animals when they were prone or standing in place and did not make them pass through a narrow opening, these animals are tithed after the fact. But if he had one hundred animals and he took ten as tithe, or if he had ten animals and he simply took one as tithe, that is not tithe, as he did not count them one by one until reaching ten. Rabbi Yosei, son of Rabbi Yehuda, says: In that case too, it is tithe. If before the owner completed tithing his animals, one of those already counted jumped back into the pen among the animals that had not yet been counted, all those in the pen are exempt from being tithed, as each of them might be the animal that was already counted. If one of those animals that had been tithed, i.e., designated as the tenth, jumped back into the pen among the animals that had not yet been counted, creating uncertainty with regard to all the animals there which was the animal tithe, all the animals must graze until they become unfit for sacrifice, and each of them may be eaten in its blemished state by its owner once it develops a blemish.

Word-by-word Breakdown (מילים ושרשים)

כֵּיצַד → In what manner מְעַשְּׂרָן → does one tithe them [ע - ש - ר]כּוֹנְסָן → he gathers them [כ - נ - ס]לַדִּיר → into the pen [ד - י - ר]וְעוֹשֶׂה → and makes [ע - ש - ה]לָהֶן → for them פֶּתַח → an opening [פ - ת - ח]קָטָן → small [ק - ט - ן]כְּדֵי → so that [ד - י - ה]שֶׁלֹּא → not יִהְיוּ → will be [ה - י - ה]שְׁנַיִם → two [ש - נ - ה]יְכוֹלִין → able [י - כ - ל]לָצֵאת → to emerge [י - צ - א]כְּאַחַת → together [א - ח - ד]וּמוֹנֶה → and he counts [מ - נ - ה]בַשֵּׁבֶט → with the rod [ש - ב - ט]אֶחָד → one [א - ח - ד]שְׁנַיִם → two [ש - נ - ה]שְׁלשָׁה → three [ש - ל - ש]אַרְבָּעָה → four [ר - ב - ע]חֲמִשָּׁה → five [ח - מ - ש]שִׁשָּׁה → six [ש - ש - ה]שִׁבְעָה → seven [ש - ב - ע]שְׁמוֹנָה → eight [ש - מ - נ]תִּשְׁעָה → nine [ת - ש - ע]וְהַיוֹצֵא → and the one emerging [י - צ - א]עֲשִׂירִי → tenth [ע - ש - ר]סוֹקְרוֹ → he paints it [ס - ק - ר]בְסִקְרָא → with red paint [ס - ק - ר]וְאוֹמֵר → and says [א - מ - ר]הֲרֵי → behold [ה - ר - ה]זֶה → this מַעֲשֵׂר → tithe [ע - ש - ר]לֹא → not