We present a very simple formula for calculating the total number of photons of an x-ray beam after being monochromatized by a double crystal monochromator. This is a typical case for most synchrotron radiation beamlines. The derivation of the formula and its numerical benchmarking by ray-tracing simulations are also presented.