Measurement of charm production in antineutrino charged-current interactions