A monument made of a certain number of rows consisting of cube-shaped bricks starts with a row of 34 bricks. The row above has 31 bricks, the row above that has 28 bricks, and so on such that each row has three fewer bricks than the row below it. A portion of the monument is shown below. Later a student notices that the total number of bricks used in the monument is just enough to create the brick floor of a rectangular patio that is one layer of bricks, seven times as long as it is wide. (No bricks are broken to make the floor.) How many rows of bricks does the monument have?