Halo mass definition and multiplicity function