The 40 unit squares of the $9 \times 9$ table are labeled. A horizontal or vertical row of 9 unit squares is considered "good" if it contains more labeled unit squares than unlabeled ones. How many "good" rows (both horizontal and vertical) can the table have in total?

Let's think step by step and output the final answer within \boxed{}.
user