If A(0, 0, 0) and B(2, 2, 2) are points in coordinate space, how many paths are there from A to B that move from one lattice point to another in the positive x-, y- or z-direction?
By casework, the number of paths is 16 + 4 + 4 + 4 = 28.