5. (10 points) The grid in the figure is composed of 6 identical small squares. Color 4 of the small squares gray, requiring that each row and each column has a colored small square. Two colored grids are considered the same if they are identical after rotation. How many different coloring methods are there? $\qquad$ kinds.