The whole class happens to be lined up in 6 rows with equal numbers. Xiao Ming stands in the 4th row, he is the fourth from the bottom, and the fourth from the bottom. How many people are there in the class?
全班同学正好排成人数相等的6行，小明站在第4行，顺数他是第四，倒数也是第四．全班共有多少人？
<gadget id="calculator">4 - 1</gadget>
<output>3</output>

<gadget id="calculator">4 + 3</gadget>
<output>7</output>

<gadget id="calculator">7 * 6</gadget>
<output>42</output>

<result>42</result>