Measurement of the production cross section of a W boson in association with two b jets in pp collisions at $\sqrts = 8\,\mathrmTeV $