Sums of Euler products and statistics of elliptic curves