Correlations between dilepton yields and pion multiplicities as probe of the deconfinement transition