Constraints on the cosmological parameters by means of the clusters mass function