What was the primary goal of the Allies in their counteroffensive after the initial German attack?