Depends on how you define your problem. Here are the first three ways that appear in my head.
Vector space task
1) From point A (0, 0) to point B (2, 2), create vector AB (B_x-A_x, B_y-B_y). This vector exists in the affine space, and we introduce the user coordinate axis "south" and "east" to it. So, we get the vector "AB = 2" south + 2 "east".
To find out what the possible paths are: Permutations[{"south", "south", "east", "east"}]
{{"south", "south", "east", "east"}, {"south", "east", "south", "east"}, {"south", "east", "east", "south"}, {"east", "south", "south", "east"}, {"east", "south", "east", "south"}, {"east", "east", "south", "south"}}
To find their length: Length[Permutations[{"south", "south", "east", "east"}]]
6
Algebraic Problem
2) Reduce the problem to an algebraic form. This is a combinatorial problem when the binomial coefficient 4 choose 2 will give an answer, because you can do 2 different actions just 4 times.
To calculate: Binomial [4, 2]
6
Graphics problem
3) make a schedule:

Then complete, there are only 6 ways to do this.