Straight Mazes

Find a horizontal and vertical path from the bottom left to the top right. The numbers in some of the squares indicate how many times the path has a straight segment in that square or the four touching squares. Here's an example:

Each puzzle below has a unique solution.