The merged company would bring together 25 million O2 customers in Britain , Germany and Ireland with Telefonica 's 145 million customers , most of them in Spain and Latin America , and would create Europe 's second-largest telecommunications company by market value , behind Vodafone .