Finding the number of passengers in a train car