Count the number of unique ways to visit a 4x4 matrix using back track.