TEZ-1089. Change CompositeDataMovementEvent endIndex to a count of
number of events. Contributed by Chen He.