The cluster abundance in flat and open cosmologies