Step 1: Group by design.
Scan every tile and cluster ones that are identical (allowing for rotation), setting duplicates aside.
Step 2: Count the clusters.
The number of distinct clusters is the number of unique patterns.
\[ \boxed{\text{Number of distinct pattern groups}} \]