Number + 行 + Noun
The measure word 行 (háng) is used to count rows, lines, or categories. It appears in contexts like rows of text, lines of a poem, or the traditional Chinese concept of the Five Elements (五行). When counting, place a number before 行 followed by the noun it measures.
这首诗一共有四行,每行七个字。
zhè shǒu shī yīgòng yǒu sì háng, měi háng qī gè zì.
This poem has four lines in total, with seven characters in each line.
请你在第三行签上你的名字。
qǐng nǐ zài dì sān háng qiān shàng nǐ de míngzì.
Please sign your name on the third line.
屏幕上显示了好几行代码,我看不太懂。
píngmù shàng xiǎnshì le hǎo jǐ háng dàimǎ, wǒ kàn bù tài dǒng.
Several lines of code appeared on the screen, and I couldn't quite understand them.