Thanks. Now I see why I get 20 and you get 22.
You treat two cases as equivalent if there exists rotation that transforms one case into another.
And I allow symmetries as well.
For example (1,6) and (1,8) are equivalent for me but not equivalent for you.