Multiplicity distributions in π+d and pd collisions at 100 GeV/c