The mass function of clusters of galaxies