Count all possible paths from top left to bottom right of a mXn matrix