The Holographic Bound in the Scalar-Tensor and f(R) Gravities