$6$
8. Fill in all the digits from 1 to 7 in the small squares below, with one digit per square. Two squares that share a common edge must satisfy: the digit in the upper square is greater than the digit in the lower square, and the digit in the right square is greater than the digit in the left square. There are $\qquad$ ways to fill the squares that meet the requirements.