I think molarity and amount of solute are directly related since if you increase the amount of solute in a given volume the molarity increases as a direct result. M=(mol of solute)/(L of solution)
I hope this helps. Let me know in the comments if anything unclear.