Multiplicity distribution and nuclear effects in π−d interactions at 21 GeV/c