Robert colors each square in an empty $3 \times 3$ grid either red or green. Find the number of colorings such that no row or column contains more than one green square.

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