Device for controlling the drehzahlaenderung in automatic transmissions