In the book titled: Combinatorics: A Problem-Based Approach, by: Pavle Mladenović; in section 2.7; there is a solved problem (2.7.11) for finding by direct counting the number of non-equivalent colorings.

There are given $4$ unit square parts (called fields) of a square of size $2*2$, that are to be colored with three colors - red (R), blue (B), yellow(Y).
The problem description is: two colorings are considered to be the same if the first of them can overlap the second by rotating the given square of size $2*2$. Find the number of non-equivalent colorings under this assumption.
The answer given by the book states:
We say that a coloring is of $(a, b, c)$-type, where $a\geq b\geq c$, if $a$ of the given four fields are colored the same color (red, blue, or yellow), and $b$ and $c$ of the fields are colored the other two colors. Possible types of colorings are
$(4, 0, 0), (3, 1, 0), (2, 2, 0)$, and $(2, 1, 1)$. It is easy to see that there are $3, 6, 6$, and $9$ colorings of these types, respectively. The total number of distinct colorings is $3 + 6 + 6 + 9 = 24$.
I have confusion in understanding the notations used - say, how there is value $0$ when $4$ is also there. I mean the integers $0,1, 2,3,4$ signify $5$ values; that I do not see in any category - number of fields, or number of colors. Seems, am lost in understanding of the approach taken by the author.
RBRY. That would not be in the $(2,2,0)$ case but rather in the $(2,1,1)$ case. The possibilities are in alphabetical order (earliest representation of each used):BBRR,BBYY,BRBR,BYBY,RRYY,RYRY. Note for instance that since rotations are considered identical, I only includedBBRRonce rather than also includingBRRB,RRBB, andRBBRsince these are all considered identical toBBRR. Note that in each of these, we have two colors, each of which used twice.RYRBfor instance has three colors used, one used twice, another used once, and yet another once – JMoravitz Feb 28 '20 at 15:20BBRY,BBYR(note that these two are different),RRBY,RRYB,YYBR,YYRB, and then the three where the pair is apartRBRY,BRBY,YBYR. As an aside, learning to count these without brute force listing them out is one of the things introductory combinatorics attempts to teach you. Brute force listing them out should only be used for intuition, ease, or last resort. – JMoravitz Feb 28 '20 at 15:38