A train arrived at the station. If you count cars starting from the first one, the dining car is th 7th in the row. If you count cars starting from the last one, then the dining car is the 8th in a row. How many cars are there in this train?