There are certain laws regarding to the number of particles and avagadro number. If you havent studied it dont worry, you will study it in your 10th standard. The law states that one mole of a particle contains 6.022*10^23 particles. Thus even if the atomic massses are different the one mole of particle contains that much particles. It is a standard law. We cant change that. Just study it.