Amount of substance is an SI base quantity. Its base unit is the mole (mol). It counts particles in very large groups, so that we can link the tiny scale of atoms and molecules to masses we can measure.
One mole of any substance is the amount that contains a number of particles equal to the Avogadro constant, NA = 6.02 × 1023 mol−1. The particles may be atoms, molecules or ions, so always check which one the question asks for.
The molar mass is the mass of one mole. With it you can move between mass, amount in moles and number of particles.