Erdogan, Merkel discuss counter-terrorism over phone