set maximum routes limit to 20, and fixed totalTrip count update