Given a set of instructions, report how many distinct houses you visit in a line if you can move left, right or teleport back to your house.