Measurement of the charged particle multiplicity of weakly decaying B hadrons