Constraining f(R) gravity with Sunyaev-Zel’dovich clusters detected by the Planck satellite