Conversion of molecules to moles