Measurement of pseudorapidity distributions of charged particles in proton-proton collisions at $\sqrts$ = 8 TeV by the CMS and TOTEM experiments