The Mr of CaCl2 is 111.1 so the number of moles of CaCl2 is 0.5/111.1
= 0.00450 (to 3 sig fig)
Remember the number of moles is just number - if you consider 10 water molecules you have 10 oxygen atoms and 20 H atoms. Apply the same logic to your CaCl2