Fixing bug in TripCountAnalysis