replaced getNumberOfGenerationsForTriggers() with setStartIdToRemove().

Originally I planed to get the number of generations and then
obtain the start index of replica generation ID to be deleted.
However, I noticed that the that could be obtained without the
number of generations.